Page 1 of 1

passing parameters between pages [SOLVED]

Posted: Fri Jan 14, 2011 7:36 pm
by alaw
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?

Re: passing parameters between pages

Posted: Fri Jan 14, 2011 11:25 pm
by Nullig
Have you tried:

index.php?page=contact-us&product='Loader Coal Digging Buckets'

Nullig

Re: passing parameters between pages

Posted: Sat Jan 15, 2011 1:09 am
by alaw
Aha--syntax strikes again! Thank you for pointing that out--it is working now.

Re: passing parameters between pages [SOLVED]

Posted: Thu Jan 27, 2011 9:50 am
by psy
Try {$smarty.get.product} to retrieve the $_GET var in the form.

hth
psy