|
Posted by Han Koster on 09/28/05 19:50
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
Navigation:
[Reply to this message]
|