|
I would like users of my website to be able to request more information on a specific product. Each product as a unique code and a "more info" button/link next to it. I am not too sure how to go about it. As I understand it there are three steps here:
1. The user sees a product and wants more information. The user then clicks the "more info" button/link.
2. A popup opens with text (Please enter your details and we will get back to you), three form fields (name, telephone number, email) and an "okay" and a "cancel" button.
3. Upon clicking "okay" (obviously "cancel" will just close the window) the form is emailed to me with all the information as well as the product code as the subject.
The first step involves the link <a href="infoform.php?pc=A001> where pc is the product code. If this is correct this means that the next file to be accessed by the server will be infoform.php. Should that be the file that opens in the popup? Or should I rather link to infoform.html (which will open in the popup) and then when the user presses "okay", only then will the php script - infoform.php - run (sending the mail with the info and the product code).
If this is right then how do I communicate the value of pc through the process? Won't it get lost during infoform.html?
|