send smarty variable via URL ? [SOLVED]

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
antosha
Forum Members
Forum Members
Posts: 60
Joined: Fri Jun 06, 2008 7:20 pm

send smarty variable via URL ? [SOLVED]

Post by antosha »

Hi,
I am sure I already read about somewhere in these forums but just can't find it anymore.
I was wondering how do I pass Smarty variables via URL?

For example:

http://mysite.com/somepage.html?somevariable=somevalue


Thanks!
Last edited by antosha on Tue Jun 29, 2010 5:43 pm, edited 1 time in total.
Follow me on twitter: end_tone
Linked In: levchenkoanton
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: send smarty variable via URL ?

Post by kermit »

antosha wrote: how do I pass Smarty variables via URL?

For example:

http://mysite.com/somepage.html?somevariable=somevalue
if you put the following....

{$smarty.request.somevariable}


in a page requested via this url...

http://mysite.com/somepage.html?somevariable=somevalue


it would display...

somevalue




see http://www.smarty.net/manual/en/languag ... smarty.php
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
antosha
Forum Members
Forum Members
Posts: 60
Joined: Fri Jun 06, 2008 7:20 pm

Re: send smarty variable via URL ?

Post by antosha »

That was very helpful, thanks :)
Follow me on twitter: end_tone
Linked In: levchenkoanton
Post Reply

Return to “The Lounge”