$post and $get problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jose

    $post and $get problem

    hi.

    Can i use $_post and $_get if i don´t it using a form.?

    I have 3 php pages. in first page i want send a var with $post, I use
    Request or get in second page and i send with $post to third page, but these
    isn´t correct. I use Request or Get in third page but it don´t get anything.


    What can i do? There is other method which i can do it?


  • powerboy

    #2
    Re: $post and $get problem

    "Jose" <josecarlos@sia dv.com> wrote in message
    news:bfipe9$efs $1@nsnmrro2-gest.nuria.tele fonica-data.net...[color=blue]
    > hi.
    >
    > Can i use $_post and $_get if i don´t it using a form.?
    >
    > I have 3 php pages. in first page i want send a var with $post, I use
    > Request or get in second page and i send with $post to third page, but these
    > isn´t correct. I use Request or Get in third page but it don´t get anything.
    >
    >
    > What can i do? There is other method which i can do it?
    >
    >[/color]

    $_GET data is propagated through the URL, in which case you can append the information you wish:

    http://www.server.com/index.php?val1=x&val2=y...

    $_GET['val1'] will equal x, $_GET['val2'] will equal y.

    You may also want to research the use of urlencode() and other related functions.

    If you need the data to be 'hidden' from the user, you will most likely require sessions.

    HTH



    Comment

    Working...