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 5 of 5
  1. #1
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Moved to PHP 4.2.3 and values disapeared from forms

    OK. I'm not a PHP god. I'm moving from ASP into PHP and had a small testapp running.
    I've installed PHP 4.2.3 today, and my app stopped running. There are simply no values in the form)variables. I've changed my form-code and used the GET method ---> there are values in the querystring, buth my PHP doesn't echo or print any values.

    I'm going mental on this. Ive restarted my IIS (5) and Apache (1.3.27) but no luck. I'm running this on a Win2000 Pro machine.

    I'm going mental on this.
    I've already wasted more then an hour on this.

    Anyone knows what i may have overlooked?

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    How are you retrieving the values?

    For get, you should be using:

    $_GET['string']

    For post variables:

    $_POST['string'];

    Server variables

    $_SERVER['string']

    Sessions

    $_SESSION['string']

    Cookies
    $_COOKIE['string']

    etc

  • #3
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks.

    i used $variable.
    when i got your post, i made a search so now i know. (stupid old versions ...)

  • #4
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    What was your previous version of PHP that you moved from?
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #5
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    4.1 i think.
    Came with the 20$ book which got outdated by the time i realy dug in to it.

    Should have checked the PHP4 Changelog http://www.php.net/ChangeLog-4.php but i got to frustrated . At least i'll be able to sleep now


  •  

    Posting Permissions

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