You are here: Re: difference between versions « All PHP « IT news, forums, messages
Re: difference between versions

Posted by Markus Ernst on 01/12/06 22:27

Pasquale schrieb:
> Is it possible that there is such a difference between version 4.3.10
> and 5.1.1 that the following code, which is at the top of my script,
> gives the errors below in v5.1.1 and not in 4.3.10 running on NT??
>
> Is my coding method incorrect?
>
> It works without errors on an NT machine with another host using v4.3.10.
>
> Thanks.
>
> ## BEGIN CODE
>
> $rqrd = array(
> 'First name' => $fname, 'Last name' => $lname,
> 'Email' => $email, 'User name' => $uname,
> 'Password' => $password, 'Company' => $company,
> 'Nature of the Business' => $naturebusi, 'Address' => $address,
> 'City' => $city, 'Province' => $provstate,
> 'Postal/Zip code' => $postalzip, 'Phone number' => $phonenum
> );
>
> ## END CODE
>
>
> ## BEGIN ERROR
>
> Notice: Undefined variable: fname in
> D:\InetPub\wwwroot\mywebsite_com\bsp\common.php on line 7

Looks like a register_globals issue. Try using $_REQUEST['fname']
instead of $fname, if my guess is correct and this is for processing
form data.

--
Markus

 

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

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