Print Page | Close Window

adding request.form entry

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=10565
Printed Date: 31 March 2026 at 1:17pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: adding request.form entry
Posted By: pmormr
Subject: adding request.form entry
Date Posted: 22 May 2004 at 11:58pm

Is there anyway to add an entry that can be accessed by the redirected page using Request.Form using ASP without physically making a form and clicking submit?



-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/



Replies:
Posted By: pmormr
Date Posted: 22 May 2004 at 11:58pm
not sure if that makes much sense but someone might get what i'm talking about

-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: dpyers
Date Posted: 23 May 2004 at 12:07am

You could append parameters to the redirected url - e.g. myfile.asp?field1=x&Fld2=y



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: pmormr
Date Posted: 23 May 2004 at 11:45am
except they need to be accessed using request.form("fieldname") not request.querystring("fieldname")

-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: dpyers
Date Posted: 23 May 2004 at 7:38pm

The xmlhttp object has a POST option

Quote   Response.Buffer = True
  Dim objXMLHTTP, myXml
  Set myXml= Server.CreateObject("Microsoft.XMLHTTP")

  ' Notice the two changes in the next two lines:
  myXml.Open "POST", http://www.sourcesite.com/pagetorun.htm - http://www.sourcesite.com/pagetorun.htm , False
  myXml.Send "Field1=All&Field2=The Usual Suspects"

  Response.Write myXml.responseText

  Set myXml= Nothing

The response.write will print the output from the posted to page.



-------------

Lead me not into temptation... I know the short cut, follow me.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net