Perhaps in your experience the variables are not being declared as empty. Personally, I have found using a mixture of conditional requirements usually solve the problem. However, they may not solve your situation as this could be the result of another part of your script.
However, if the variables are not actually being set by another part of your script you may want to try the following;
Code: Select all
<?PHP
if(isset($_POST['searchBD']) || $_POST['searchBD'] == "") {
// Set variable
}
?>
There are a variety of conditions that can determine if a variable is NULL and I find especially when dealing with form variables that the latter condition I presented usually captures the empty variable.
Perhaps this will help your endeavours to return to $_POST[] method of transfering data, no?
If the problem still persists perhaps some one here will offer more advice.
Obrzut