I have a bunch of product pages. Each of these pages have a link to the contact page in them. If a website visitor clicks the contact page link, I would like to pass the product name as a parameter and pre-fill the contact page product field with this data. I was able to successfully pass the product name (such as: index.php?page=contact-us?product=Loader Coal Digging Buckets), but I have no idea how to extract this information on the contact page. Normally, Itried this: {php}echo($_GET['product']);{/php}, but that doesn't seem to work in this situation--it's not returning anything.
Thoughts?
passing parameters between pages [SOLVED]
passing parameters between pages [SOLVED]
Last edited by alaw on Sat Jan 15, 2011 1:09 am, edited 1 time in total.
Re: passing parameters between pages
Have you tried:
index.php?page=contact-us&product='Loader Coal Digging Buckets'
Nullig
index.php?page=contact-us&product='Loader Coal Digging Buckets'
Nullig
Re: passing parameters between pages
Aha--syntax strikes again! Thank you for pointing that out--it is working now.
Re: passing parameters between pages [SOLVED]
Try {$smarty.get.product} to retrieve the $_GET var in the form.
hth
psy
hth
psy