...

View Full Version : passing variable to another page without a form



DoubleV
09-19-2003, 04:21 PM
is it possible to do? - pass variable from one page to another without using a form?and if yes, then how?
thanks.

whackaxe
09-19-2003, 04:35 PM
sessions. sessions are just like a server side version of cookies (kindof) wich lets you strore variables in an array ($_SESSION[]) and then recall. be carefull with security issues regardng sessions though.

http://www.hotscripts.com/PHP/Tips_and_Tutorials/Cookies_and_Sessions/index.html

http://fr2.php.net/manual/en/ref.session.php

Spookster
09-19-2003, 05:35 PM
Or you can simply append the value in the URL

www.yaks.com/page.php?hurricane=isabel

To retrieve that variable you use $_GET

$myvariable = $_GET['hurricane'];



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum