|
-
Jan 11th, 2011, 06:47 PM
#1
Thread Starter
New Member
HTML Textbox Value using Request.QueryString()
Hello. I am trying to get the value of an input inside a text box. I have a table that has a text box in each field for the specific column "discount rate". When the user inputs new values in the "discount rate" field, the back-end file is supposed to take in those values via Request.QueryString() and post them to my SQL database table.
The front end file's script is as follows:
Response.Write("<td><center><input type=text name='Modify" & RecID & "' /><br></br>Current:" & Discount & "</center></td>")
My form is at the top of my page because has several other things to display.
The back-end file which takes the data inputted into each text box in the column labeled "Discount Rate" is scripted as follows:
Request.QueryString("Modify" & cstr(cnt))
SQL = "UPDATE Shipping_Discount_Test set discount=Modify" & cstr(cnt) & "WHERE rec_id=" & cstr(cnt)
RunSQL objRemoteConnTemp, SQL
Please help. Thank you.
-
Jan 12th, 2011, 10:27 AM
#2
Re: HTML Textbox Value using Request.QueryString()
If you are trying to get a text box value you would use Request.Form instead of Request.Querystring
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|