Re: PHP: Undefined Variables Error Message

From: Date: Thu, 26 Aug 2004 21:00:28 +0000
Subject: Re: PHP: Undefined Variables Error Message
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-194849@lists.php.net to get a copy of this message
Jeff - Webmaster wrote:
Here is a snippet of the code that is being choked on. The first failure comes from line 6: <?php
        $name = $_POST['name'];
        $address = $_POST['address'];
        $email = $_POST['email'];
        $phone = $_POST['phone'];
        $type = $_POST['type'];
        $message = $_POST['message'];
The variables are being passed from an html form that calls this script with the post method. Jeff
If you're going to use the super-global $_POST, why do you need globals on? Anyway, how is 'type' passed from the previous page? Show the code for that. What type of form field is it? -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com

« previous php.general (#194849) next »