sthelios Posted November 12, 2009 Posted November 12, 2009 Hi everyone On my website i have a number of products where that people need to send a mail to ask the price. So instead of displaying the price i have a link: { echo " <a href='http://www.*****.be/contact_us.php'> " . TEXT_MAIL_FOR_THE_PRICE . " </a> "; } Is it possible to send parameters to the contacT_us.php form, so that the question/enquiry field is automatically filled with the model number and for example "i want to know the price of " + product? Grz Robin
spooks Posted November 12, 2009 Posted November 12, 2009 Hi everyone On my website i have a number of products where that people need to send a mail to ask the price. So instead of displaying the price i have a link: { echo " <a href='http://www.*****.be/contact_us.php'> " . TEXT_MAIL_FOR_THE_PRICE . " </a> "; } Is it possible to send parameters to the contacT_us.php form, so that the question/enquiry field is automatically filled with the model number and for example "i want to know the price of " + product? Grz Robin First you should'nt link like that, it could cause loss of session so cart etc, use tep_href_link http://www.oscommerce.com/forums/topic/330479-what-is-the-oscsid-why-you-must-not-loose-it/ You could also pass the params you want with the tep_href_link function. This post delt with a similar issue, but for search, you could mod around that, its only the param passing you need to change. Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
multimixer Posted November 12, 2009 Posted November 12, 2009 Optionally you could use the quotes contribution My community profile | Template system for osCommerce - New: Responsive | Feedback channel
sthelios Posted November 12, 2009 Author Posted November 12, 2009 First you should'nt link like that, it could cause loss of session so cart etc, use tep_href_link http://www.oscommerce.com/forums/topic/330479-what-is-the-oscsid-why-you-must-not-loose-it/ You could also pass the params you want with the tep_href_link function. This post delt with a similar issue, but for search, you could mod around that, its only the param passing you need to change. Super! Gonna try it out and thnxs for the tip concerning the linking
Recommended Posts
Archived
This topic is now archived and is closed to further replies.