Populate form field based on URL parameters

Discussion in 'HTML & Website Design' started by hershel, Nov 9, 2011.

  1. #1
    Hi i have the following URL:

    www.mysite.com/product.aspx?PID=1000

    I want to pre-populate a form field with the "PID" value in the URL -

    I have tried using:


    <input type="text" id="PID" value="<%=Request.QueryString("PID")%>">

    but it does not work.

    Can anyone help?

    Thanks
     
    hershel, Nov 9, 2011 IP