Errors in php 5.0.4 Not in 4.3.10-16
- From: "Han Koster" <han+at+kosterwieringa+dot+nl>
- Date: Wed, 30 Nov 2005 09:52:24 +0100
I use the following statements:
$var = "";
$var = $_POST('varname');
In php 4, when 'varname' was not defined, $var remained an empty string;
In php 5, I suddenly get errors.
I solved these by including the function array_key_exist to check the
occurence of 'varname'
Is this the prefered way or is ther a better solution?
Thanx,
Han koster
.
- Follow-Ups:
- Re: Errors in php 5.0.4 Not in 4.3.10-16
- From: myname
- Re: Errors in php 5.0.4 Not in 4.3.10-16
- Prev by Date: Re: Send email with attachment in PHP
- Next by Date: Want Open source Multi- Shoping & CMS Web
- Previous by thread: Upload script error
- Next by thread: Re: Errors in php 5.0.4 Not in 4.3.10-16
- Index(es):
Relevant Pages
|