Passing Variables Between Pages

liunx

Guest
What method do you all use to pass your variables between pages?? I've been using query strings like "additem.php?gameid=2", but I know google doesn't like dynamic naming for it's indexing. What do you use to either stay with a static address, or what do you do to make it look like a static address to google at least. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /><br /><br /><!--coloro:blue--><span style="color:blue"><!--/coloro-->- Vendlus<!--colorc--></span><!--/colorc--><!--content-->
Wishy-washy answer: It depends on the kind of site you are designing.<br /><br />If you are trying for a standard commercial site, I would try for using sessions to pass variables. They are invisible to the user and are pretty cool all around. [Disclaimer: I don't have any commercial sites].<br /><br />If you are going for a quick and dirty informational/personal site where search engine ranking does not directly relate to your income, the easy way with query strings is, well, easy. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> <br /><br />And if you are a tidy webmaster, the pseudo-static page approach with mod_rewrite is attractive, but a bit time-consuming to set up. <br /><br />I have tried all three and use all three approaches for different areas of my site.<br /><br />...dave<!--content-->
Do a search on <!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->force type apache<!--QuoteEnd--></div><!--QuoteEEnd--> and you'll find plenty of info.<br /><br />The one bit that I would add to Wilexa's post is that if you are going to use sessions to pass variables, then you should have a testing script that makes sure the user can accept cookies (or sessions) and have a back up plan if they can't.<br /><br />Some ultra high security sessions will disable the sessions feature of php.<!--content-->
Good points, Jack!<br /><br />I learn something new here every day! Rock Sign <br /><br />...dave<!--content-->
<!--QuoteBegin-surefire+Sep 30 2003, 04:09 AM--><div class='quotetop'>QUOTE(surefire @ Sep 30 2003, 04:09 AM)</div><div class='quotemain'><!--QuoteEBegin-->Do a search on <!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->force type apache<!--QuoteEnd--></div><!--QuoteEEnd--> and you'll find plenty of info.<br /><br />The one bit that I would add to Wilexa's post is that if you are going to use sessions to pass variables, then you should have a testing script that makes sure the user can accept cookies (or sessions) and have a back up plan if they can't.<br /><br />Some ultra high security sessions will disable the sessions feature of php.<!--QuoteEnd--></div><!--QuoteEEnd--><br />oh yeah... I knew there was a reason my brain was rejecting something about sessions. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> <br /><br />I'll certainly try that search out. <br /><br />Thanks for your help guys.<!--content-->
 
Back
Top