|
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]
|