how do I do this?
Also what happens if i assign a varrible $POST_['variable'] and there wasnt a varible sent.
how to check if a variable exists
Moderator: General Moderators
-
HomerTheDragoon
- Forum Newbie
- Posts: 21
- Joined: Sat Jul 08, 2006 2:10 am
Code: Select all
<?php
if (!isset($_POST['variable'])) {
echo 'Not Set!';
} else {
echo 'Set! Yay!!!';
}
?>