You are here: Re: variable problem in address book script « All PHP « IT news, forums, messages
Re: variable problem in address book script

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация