I have a form in which a user is going to enter (actually paste) a web
address into a form field. The URL will have a query string (e.g.
http://www.something.com?fld1=xxx&fld2=12345). When the form is posted, I
properly receive the address in $_POST. After I process it, I want to put
its value back into the field. Assuming the field name is v1, my <input>
tag has the following field:
... value="' . $_POST['v1'] . '" ...
Unfortunate, the query part of the string is truncated off and all that
shows up in the field is the base portion of the URL. What PHP function
will prepare the field such that the full URL - with query - will display
in the field?