|
Actually, if you page names are reasonably obvious for each product then you can use PHP's superglobal $_SERVER['HTTP_REFERER']. It will give you the url that they came from previous to arriving at your contact page. If your page names are not totally obvious then you might need to do a little string manipulation and translation to make it obvious for whoever is receiving the emails.
Two things to consider with this option:
1. HTTP_REFERER is improperly spelled but that is the way it is spelled for the variable. Real pain in the tail if you spell it correctly because the code doesn't work then!!!
2. You may find that a lot of people's questions do not refer to the page they came from and this could cause more confusion that it is worth. You may be better off just adding a couple of drop down (select) lists to your form that would be required so they have to pick a product. With about 50 products this may only be quick and easy enough for people to use by have one drop-down list of product categories and the second drop-down changes based on the category selected in the first one. Requires a little coding but not too much.
Good luck.
__________________
Experimenting
|