|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Form help
I have a page where users enter there info to be contacted. on submit it sends it a a page with cdonts configured, this bit works fine.
How do I get the cdont mail page to read the info from the previous page, I have tried request.form but I don't seem to be able to get the syntax correct. I am new to coding so your help would be greatly appreciated. |
|
#2
|
|||
|
|||
|
Request.Form should do it, with the field name in quotes and parens behind it.
On the first page, make sure the form's "action" points at the second page. <% ' page 1 %> <form action="mycdonts.asp" method="post"> <input type="text" name="myName" value="myName" /> <input type="submit" name="btnSubmit" value="Submit" /> </form> <% 'mycdonts.asp Response.Write(Request.Form("myName")) %> |
|
#3
|
|||
|
|||
|
so long as the method for the form is "post", a request.form will work.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > Form help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|