|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Form value for query string
hello,
I'm trying to get a value from a textbox <input type="text" name="username"> and add it into the action part of the form <FORM name=member action="http://<%=request("Remote_Host")%>/process?OS=http://www.test.com/confirm.asp?username=<!----this is where i want the value from the form---->&" method="POST"> please help |
|
#2
|
||||
|
||||
|
Hi,
I think there is a confusion here. It is not possible to put the username variable into the form parameters on the client side with ASP. What you need to do is get the "username" value inside confirm.asp (or proces.asp, depending on what's in them). In confirm.asp or process.asp I would write: Code:
dim username
username = Request.form("username")
Then in the main form: Code:
<FORM name=member action="http://<%=request("Remote_Host")%>/process?OS=http://www.test.com/confirm.asp" method="POST">
I hope it helps, |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Form value for query string |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|