Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Feb 2003
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Processing form data

    Hello, I am using html form to submit my guestbook with fields name, email, comment. Then i used php and tried to retrieve the submitted value as $email and $name, however, i cannot read any input UNLESS I replace it as $HTTP_POST_VARS["name"].
    Why is that? can i just use echo ($name); ?


    pls help

  • #2
    Registered User
    Join Date
    Feb 2003
    Location
    Berkshire, UK
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://uk.php.net/manual/en/configur...gister-globals

    register_globals boolean
    Tells whether or not to register the EGPCS (Environment, GET, POST, Cookie, Server) variables as global variables. For example
    the link will give you all the info you need. it is a setting that is disabled on your server.

  • #3
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,266
    Thanks
    6
    Thanked 48 Times in 48 Posts
    an easy way...

    PHP Code:
    $name HTTP_POST_VARS["name"];

    echo 
    $name
    Saves having to put HTTP_POST_VARS["name"] everytime


  •  

    Posting Permissions

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