URL string to populate form

liunx

Guest
Could someone please tell me how to create the URL string that I can click to populate just the first form field on my html form...<br />
<br />
It looks like this now and doesn't work... what am I doing wrong? <!-- m --><a class="postlink" href="http://pbcocnew/ccc/form.asp&dept=12">http://pbcocnew/ccc/form.asp&dept=12</a><!-- m --><br />
<br />
I want the first text field (dept) on the html page to be populated with the number 12 or whichever # I put at the end of the string. <br />
I get a page not found when I do that. Is it my syntax or am I way off and need to do additional coding?<br />
<br />
Any help would be great.<br />
<br />
Thanks,<br />
<br />
Jill<!--content-->I am guessing that this question would get a better response in the ASP forum, since your URL contains ASP.<!--content-->Hi!<br />
<br />
Your problem is the "&" in your url. This is to separate different variables in the url, but in front of the first (and - in your example - only) var to be passed it has to be "?".<br />
<br />
Wrong:<br />
<!-- m --><a class="postlink" href="http://pbcocnew/ccc/form.asp&dept=12">http://pbcocnew/ccc/form.asp&dept=12</a><!-- m --><br />
<br />
Correct:<br />
<!-- m --><a class="postlink" href="http://pbcocnew/ccc/form.asp?dept=12">http://pbcocnew/ccc/form.asp?dept=12</a><!-- m --><br />
<br />
Please try the second one and it should work (if the rest of your stuff is correct)...<br />
<br />
Cheers - Pit<!--content-->
 
Back
Top