| | |
Challenging Problem in PASSing Data to Server, Plz Help
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2006
Posts: 1
Reputation:
Solved Threads: 0
Hi Guys, Listen, Here’s I have a little challenging ASP Question facing my Mobile Project.
When I submit User data from my Mobile app to my ASP server using POST method, my Server validates this data and passes it to another ASP Server(i.e. another site), which at the end sends the answer.
The Problem is that, After validation,
>>>HOW can my ASP Server Forward processed data to another ASP Server using POST method without Client interaction<<< the Client only receives the answer from the Second ASP Server.
I’ll be very thankfull for any ideas :cheesy:
When I submit User data from my Mobile app to my ASP server using POST method, my Server validates this data and passes it to another ASP Server(i.e. another site), which at the end sends the answer.
The Problem is that, After validation,
>>>HOW can my ASP Server Forward processed data to another ASP Server using POST method without Client interaction<<< the Client only receives the answer from the Second ASP Server.
I’ll be very thankfull for any ideas :cheesy:
•
•
Join Date: Sep 2004
Posts: 89
Reputation:
Solved Threads: 1
Well if the data is not huge then u can use the querystring to forward the data to the next server.
For posting the data you can use XML to post the data. I havent used that but i think it will work.
For posting the data you can use XML to post the data. I havent used that but i think it will work.
•
•
Join Date: Sep 2004
Posts: 89
Reputation:
Solved Threads: 1
Ok here is the actual code which you can use to post the data to the next server. It uses XMLHTTP object in ASP.
On the nextServer at page something.asp you can get the data using the Request.Form("Name").
Using this way you can post all the data to the next server.
Is it what you were asking in the PM?
ASP Syntax (Toggle Plain Text)
Response.Buffer = true xml = Server.CreateObject("Microsoft.XMLHTTP") xml.Open("POST", "<a rel="nofollow" class="t" href="http://nextserver.com/something.asp" target="_blank">http://nextserver.com/something.asp</a>", false) xml.setRequestHeader("Content-Type", "application/x-www-form-urlencoded") xml.Send("name=MSaqib")
On the nextServer at page something.asp you can get the data using the Request.Form("Name").
Using this way you can post all the data to the next server.
Is it what you were asking in the PM?
you could set up a page that submits a form on load using javascript.... with the folowing script.
and your form passes it on to the other server in the action field. with after the url with a "?" mark first though. that way it will re submit all the form data aswell as the querystring.
the script thing creates a hidden field for all the form data submited with their names. hope it helps
ASP Syntax (Toggle Plain Text)
<% for each item in request.form response.write "<input type=""hidden"" name="""& item &""" value="""& request.form(item) &""">" next %>
and your form passes it on to the other server in the action field. with
ASP Syntax (Toggle Plain Text)
<%= request.querystring() %>
the script thing creates a hidden field for all the form data submited with their names. hope it helps
![]() |
Similar Threads
- Passing data from forms from one page to another (JavaScript / DHTML / AJAX)
- Please help with passing data from one form to another form (VB.NET)
- Passing values from server-side code to html (ASP.NET)
- problem in finding whether data is image or not? (JSP)
- problem in passing multiple checkbox values (ASP)
- my cpu is sending too much data to the server (Viruses, Spyware and other Nasties)
Other Threads in the ASP Forum
- Previous Thread: URL Encoding
- Next Thread: script for number of views
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection connection database databaseconnection diagnostics dreamweaver excel fso iis microsoft msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption server single specfic sqlserver sqlserverconnection toolkit webserver windows7





