Professional Web Applications Themes

[PHP] Passing $Vars between 2 php pages - PHP Development

Thank you Robert! But, I forgot to mention... "and without URI"...

Sponsored Links
  1. #1

    Default Re: [PHP] Passing $Vars between 2 php pages

    Thank you Robert!
    But, I forgot to mention... "and without URI"


    Sponsored Links
    Valentin Guest

  2. #2

    Default Re: [PHP] Passing $Vars between 2 php pages

    Thanks John!



    Valentin Guest

  3. #3

    Default Re: [PHP] Passing $Vars between 2 php pages

    |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:
    [url]http://www.php.net/manual/en/ref.session.php[/url]

    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
    --
    Registered Linux user #304026.
    "lynx -source [url]http://jharris.rallycentral.us/jharris.asc[/url] | gpg --import"
    Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED
    Responses to this message should conform to RFC 1855.


    Jeff Harris Guest

  4. #4

    Default Re: [PHP] Passing $Vars between 2 php pages

    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:
    >[url]http://www.php.net/manual/en/ref.session.php[/url]
    >
    >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
    >
    >

    John Manko Guest

Similar Threads

  1. Passing vars from CFC to Flex
    By pope on acid in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: April 9th, 08:37 AM
  2. mod_perl2 passing env vars when doing internal_redirects
    By markus.rietzler@rzf.fin-nrw.de in forum PERL Modules
    Replies: 1
    Last Post: July 12th, 12:06 PM
  3. Passing vars into functions
    By jaquito13 in forum PHP Development
    Replies: 2
    Last Post: May 18th, 09:06 PM
  4. Passing Vars into Flash from Javascript
    By Will1980 in forum Macromedia Flash Actionscript
    Replies: 2
    Last Post: February 20th, 06:49 PM
  5. passing Vars?
    By Richard Ragon in forum PHP Development
    Replies: 3
    Last Post: November 24th, 11:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139