Results 1 to 2 of 2

Thread: HTML Textbox Value using Request.QueryString()

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2011
    Posts
    7

    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.

  2. #2
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141

    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
  •  



Click Here to Expand Forum to Full Width