Re: Passing $Vars between 2 php pages
| From: | John Manko | Date: | Thu, 17 Jul 2003 03:34:48 +0000 |
| Subject: | Re: Passing $Vars between 2 php pages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155525@lists.php.net to get a copy of this message | ||
why not build a GET QUERY_STRING, save it in a database along with the session_id, the read it on the second page, parsing the string.
Jeff Harris wrote:
|Valentin wrote: | |>Hi, is any way to pass a $Var from one to other php pages without using |><DEFANGED_FORM> and Cookies? |> |>Thanks, |> On Jul 16, 2003, "John Manko" claimed that: |page1.php |$_SESSION['myvars_VARNAME'] = $varname; |the 'myvars_' is just for identification purposes, so avoid over-writing |anthing that you might not want to. | |page2.php |$varname = $_SESSION['myvars_VARNAME']; Session still either use cookies or URI: "There are two methods to propagate a session id: Cookies, URL parameter" Thus sayeth the oracle: http://www.php.net/manual/en/ref.session.php The only way that I can see of passing a variable from page to page without using cookies or URI would be to make sure that only one person can access the entire site at one time and use either a database or a file on the server. Jeff