Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Errors in php 5.0.4 Not in 4.3.10-16
- Han Koster
November 30, 2005, 8:52 am
rate this thread
$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?