I remember when I was using Cold Fusion I could set a value to a variable in one page and then when I redirect a browser to another page I could have that value printed on that page. Could you do that in PHP? If so how?
certainly! you can use PHP sessions. you can read the documentation for PHP sessions for more info. also, there's an article in this website discussing Session Handling functions. also, aside from sessions you can use querystrings and <form> elements to pass variables.
rtfm.
Well... I was thinking of something more like this:
page1.cfm: <cfset #msg# = "Foobar">
page2.cfm: <cfprint #msg#>
(Excuse me if this syntax is wrong - it's been a while since I've done this.)
Hi,
maybe it´s that what you are looking for:
http://www.mysite.com/mypage.htm?variable=foo
and on the page mypage.htm: <? print $variable; ?php>