Forums

ASP

This topic is locked

Autofill forms with button link

Posted 25 Jun 2001 09:01:23
1
has voted
25 Jun 2001 09:01:23 jason johnson posted:
I work on a real estate agent's website. I need to create a button that will be placed under new postings of properties. When the button is clicked, I want it to autofill the address of the house the button is under into an HTML form.

I am very familiar with HTML, but not to familiar with query strings and other such ASP lingo. In other words, I'm a little new to this. Any help on this topic would be greatly appreciated. Thanks in advance!

Jason

Replies

Replied 26 Jun 2001 01:27:01
26 Jun 2001 01:27:01 Joel Martinez replied:
hmm.... well, one way that you could tackle this (assuming that this information doesn't come from a database), is by using hidden form fields...
----------

<input type="hidden" name="address" value="123 elm street">

----------

then have the form post it to the form in question, and create the text to hold the address like this,
----------

<input type="text" name="address" value="<%=request("address"%>">

----------

that takes the form post, and inserts it into the value parameter... this lets you have one generic form (I guess it's to email for the info on that address?) and a bunch of pages can just point to that page, and have the hidden form field called "Address"

hope that was enough of an explanation...
Joel Martinez

----------
Is this thing on?....

Reply to this topic