RealEstate
02-14-2006, 04:08 AM
Hey guys,
Short version of what's below...I wanna know how to pass hidden fields via a URL to a form in a contact us page. All done in plain HTML and non OR related.
If you're brave...read long description below ;)
----------------------------------------------------
This is not related to OR or PHP, CGI, etc.
This is just plain HTML for begginers.
Lets say I have a website with 100 pages and 1 page as Contact US.
The Contact Us page has a form visitors can submit.
Each of the 100 pages contains a particular product. Each of this 100 pages
will contain a link to the Contact Us.
Visitor is on Page5 which talks about Shoes. Vistor clicks on Contact Us link.
Visitor fills form. I receive form content.
On the email that I receive I also want to receive info telling me that the visitor was looking at Shoes right before submitting the contact form.
What I want is the hidden field "Shoes" to be passed to the contact us page and submitted to me along with the contact form information filled.
I think the terminology of what I'm looking for is "Passing Hidden Fields via Link". or Query String.
I want to do it in easy plain HTML. No fancy programming or javascript.
Something like this might work but I'm clueless
<a href="http://example.com/contact.html?Shoes">
Click here for Contact Us
</a>
The above info was found here:
http://www.bontragercgi.com/Track_Your_Contact_Form_Use.html
I also found this in the microsoft site, but it might be for asp.net
http://www.contoso.com/listwidgets.aspx?category=basic&price=100
Much appreciated as always.
Short version of what's below...I wanna know how to pass hidden fields via a URL to a form in a contact us page. All done in plain HTML and non OR related.
If you're brave...read long description below ;)
----------------------------------------------------
This is not related to OR or PHP, CGI, etc.
This is just plain HTML for begginers.
Lets say I have a website with 100 pages and 1 page as Contact US.
The Contact Us page has a form visitors can submit.
Each of the 100 pages contains a particular product. Each of this 100 pages
will contain a link to the Contact Us.
Visitor is on Page5 which talks about Shoes. Vistor clicks on Contact Us link.
Visitor fills form. I receive form content.
On the email that I receive I also want to receive info telling me that the visitor was looking at Shoes right before submitting the contact form.
What I want is the hidden field "Shoes" to be passed to the contact us page and submitted to me along with the contact form information filled.
I think the terminology of what I'm looking for is "Passing Hidden Fields via Link". or Query String.
I want to do it in easy plain HTML. No fancy programming or javascript.
Something like this might work but I'm clueless
<a href="http://example.com/contact.html?Shoes">
Click here for Contact Us
</a>
The above info was found here:
http://www.bontragercgi.com/Track_Your_Contact_Form_Use.html
I also found this in the microsoft site, but it might be for asp.net
http://www.contoso.com/listwidgets.aspx?category=basic&price=100
Much appreciated as always.