Variables

How can I store a variable and use this variable in some different scripts without changing the content of the variable. I have to store a name of a person and use it in different script pages.

Thx, Wouter

Comments

  • : How can I store a variable and use this variable in some different scripts without changing the content of the variable. I have to store a name of a person and use it in different script pages.
    :
    : Thx, Wouter
    :

    you will either need to store the varible in a cookie,
    php.net/setcookie
    or you can place it into your "$QUERY_STRING" by doing something like

    or you can use a hidden form element such as




  • $QUERY_STRING is the best answer to you problem if you are using a link.

    if you are using a form use the hidden variable.

    last resort in my opinion would be to use a cookie because some people have cookies turned off.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion