Click to See Complete Forum and Search --> : Could someone please tell me how to create the URL string that I can click to populat
gojill
12-02-2003, 07:23 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
lillu
12-02-2003, 08:45 AM
Can you please post the code here? Just the part you think is causing the problem. We don't see the page either so how to figure out what's wrong with it?
gojill
12-02-2003, 08:52 AM
It is an internal application so you wouldn't be able to access it. All I really need is the proper syntax for creating a string url to update a form field when clicked and taken to the form.
Hope that helps.
Jill
gojill
12-02-2003, 08:57 AM
sorry, i moved it outside the firewall for you to see.
http://www.pbcountyclerk.com/ccc
lillu
12-03-2003, 03:56 AM
I may be thick but I still don't understand what you mean by creating a string url to update a form field when clicked and taken to the form?
Do you want to collect user input and pass it as an URL (query string) to another page or a database?
As I could see you want to use the POST method and invoke an asp page.
Well, basically then why use an URL which is basically the GET method, which gets input form the fields and attaches it to the url string.
Example:
<html>
<body>
<form action="getuserinfo.asp" method="get">
First name: <input type="text" name="fname"><br>
Last name: <input type="text" name="lname"><br>
<input type="submit" value="Submit">
</form>
<%
Response.Write(Request.QueryString)
%>
</body>
</html>
Is this what you want or I'm completely off the track?
BTW, a piece of ASP code would help indeed rather than a link that shows the html only.