Click to See Complete Forum and Search --> : URL string to populate form


gojill
12-02-2003, 07:18 AM
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...

It looks like this now and doesn't work... what am I doing wrong? http://pbcocnew/ccc/form.asp&dept=12

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.
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?

Any help would be great.

Thanks,

Jill

clairec666
12-02-2003, 07:20 AM
I am guessing that this question would get a better response in the ASP forum, since your URL contains ASP.

Pittimann
12-02-2003, 11:48 AM
Hi!

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 "?".

Wrong:
http://pbcocnew/ccc/form.asp&dept=12

Correct:
http://pbcocnew/ccc/form.asp?dept=12

Please try the second one and it should work (if the rest of your stuff is correct)...

Cheers - Pit