PHP Code:
if(isset($_POST['other'])) {
$a = $_POST['other'];
}
That piece of code works fine. But the problem probably lies somewhere else in your script. I assume that in the next part of your script you are trying to use $a, but do mind that $a doesn't exist if $_POST['other'] has not been set. So in your next part where you're trying to use $a either add isset($a) or put $a = ''; before your isset($_POST['other'] part.
Like this:
PHP Code:
$a = '';
if(isset($_POST['other'])) {
$a = $_POST['other'];
}
or
PHP Code:
if(isset($_POST['other'])) {
$a = $_POST['other'];
}
if(isset($a)) {
// do your stuff
}
Hope this makes sense.
Cheers,
Pepe
Bookmarks