Pulling data into forms

B

Bruce Brown

I have a web site that has thousands of different
products. I want to make a "request a quote" form so that
the customer can request pricing and information. My
problem is that I would like to use just one form and
attach the product information that they are requesting a
quote on. I don't want to have to make a separate form for
each product. Please help.
 
S

Stefan B Rusynko

Pass the product page URL to the form as a field using the document.referrer
Add a form field to your form named ProductName with a default value

<INPUT TYPE="TEXT" NAME="ProductName" Value="Product Page Unknown">

Then add the below script after the field it (where formName is the name of your FP form)

<SCRIPT LANGUAGE="JavaScript" type="text/javascript"><!--
if (parent.document.referrer != '')
document.formName.ProductName.value = document.referrer;
//--></SCRIPT>






| I have a web site that has thousands of different
| products. I want to make a "request a quote" form so that
| the customer can request pricing and information. My
| problem is that I would like to use just one form and
| attach the product information that they are requesting a
| quote on. I don't want to have to make a separate form for
| each product. Please help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top