ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old May 5th, 2003, 01:59 AM
chuckliu chuckliu is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: CA, USA
Posts: 34 chuckliu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 40 m 47 sec
Reputation Power: 6
Send a message via Yahoo to chuckliu
How to get the result returned by a form?

Hello all,

here is a sample html:

<HTML>
<HEAD><TITLE>Request.htm</TITLE></HEAD>

<BODY>
<H2>Sample</H2>
<P>
Please provide the following information, then click Submit:

<FORM METHOD="GET" ACTION="answer.asp">
<P>
P string: <INPUT NAME="p" SIZE="48" Value="1">
<P>
<P><INPUT TYPE=SUBMIT VALUE="Submit"><INPUT TYPE=RESET VALUE="Reset">
</FORM>

</BODY>

</HTML>

the problem is that the answer.asp is in another server and I want to parse the results its returns (txt format), put in a table, and then send to the client. any good ideas? (html, asp, javascript, or php as long as it can solve this problem)

thanks guys in advance

Reply With Quote
  #2  
Old May 5th, 2003, 07:30 AM
imbrokn imbrokn is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Location: NJ
Posts: 428 imbrokn User rank is Corporal (100 - 500 Reputation Level)imbrokn User rank is Corporal (100 - 500 Reputation Level)imbrokn User rank is Corporal (100 - 500 Reputation Level)imbrokn User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 11 h 34 m 8 sec
Reputation Power: 10
Send a message via AIM to imbrokn
As long as the method you are using is "GET" then all the values from the form will be in the querystring, in which case it doesn't matter that answers.asp is on another server. But why are you asking what technology to use if the file is called answer.asp? ASP is a good solution for this problem and will work just fun. On the answers.asp page, you can use the request.querysting() method to retrieve the form data. Then do whatever processing you need to do.

Reply With Quote
  #3  
Old May 5th, 2003, 12:52 PM
chuckliu chuckliu is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: CA, USA
Posts: 34 chuckliu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 40 m 47 sec
Reputation Power: 6
Send a message via Yahoo to chuckliu
Thanks imbrokn, the problem is that I cann't modify the answer.asp. It belongs to another provider, but I must use the results it returns for furture usage.

Reply With Quote
  #4  
Old May 5th, 2003, 03:01 PM
defjamninja defjamninja is offline
Overly white
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: Fresno, CA
Posts: 83 defjamninja User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
So you are trying to pass information to a page on another server and then retrieve that information? I can't think of any way to do that with server side code.

Reply With Quote
  #5  
Old May 6th, 2003, 02:00 AM
Buraque Buraque is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Shimonoseki / JAPAN
Posts: 58 Buraque User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 4 sec
Reputation Power: 6
What defjamninja said.
If you don't have access to answer.asp, you cannot process returning data.
If you can retrieve some results on your screen when you submit your form to answer.asp, the only way I can think of is copy the info on the page and make a text file manually
__________________
Sweet smell of a great sorrow lies over the land. Plumes of smoke rise, merge into the leaden sky. A man lies and dreams of green fields and rivers, but awakes to a morning with no reason for waking. He's haunted by the memory of lost paradise. In his youth or dream, he can't be precise. He's chained forever to a world that's departed. It's not enough, it's not enough.
Gilmour

Reply With Quote
  #6  
Old May 17th, 2003, 04:57 AM
ngibsonau ngibsonau is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 138 ngibsonau User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Wouldn't it be a BIG security risk if you could just read data submitted to other peoples forms???

If on the other hand you want to save data that you send to the form, you should do it before you send it to answer.asp.
ie. make your own local copy of Request.html have the form on it have an action="your.asp" somewhere you can make asp work.
Then make your.asp have a form on it pre filled
eg.
Code:
<%

' do you pre processing of request("p") here

%>

<form name="myform" action="answer.asp" method="GET">
<input type="hidden" name="p" value="<% Request("p")%>">
</form>


and then place a submit in the html body onload event handler.

Code:
<body onload="document.forms.myform.submit();">
__________________
--

ngibsonau

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > How to get the result returned by a form?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway