Posted by Geoff Berrow on 01/01/07 16:45
Message-ID: <r9OdnVl04t_fqwTYnZ2dnUVZ_sudnZ2d@adelphia.com> from Mr.
Newt contained the following:
>> $mode=$_POST['mode'];
>> $name=$_POST['name'];
>> $phone=$_POST['phone'];
>> $email=$_POST['email'];
>> $id=$_POST['id'];
>>
>>
>> --
>>
>> //Aho
>
>Thanks guys. When I tried # 3 above, the error "Undefined index: mode"
>popped up.
>When I tried # 2, the error was "Undefined variable: mode." The remove
>function worked though. =)
>#1 same as # 2 (so I turned it back off).
They should be $_GET not $_POST
try this:
$mode=(isset($_GET['mode']))? $_GET['mode']) : "" ;
(and similar for all the other variables)
I suspect the error "Undefined variable: mode." is more to do with
faults in the original script and error reporting set to E_ALL than your
setup.
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
[Back to original message]
|