Posted by Kelvin Chu on 05/23/05 16:20
Change to
if ($_POST["helper1_pos"] == "") {
echo "nothing there blah blah etc etc";
}
"Ashok" <non2@mail.ru> wrote in message news:d6s85r$152g$1@gavrilo.mtu.ru...
> Hi,
> I need a condition in update form where before the form is updated, I have
> to check if the value of a cell is empty or not. If it is not empty, an
> error is shown and if empty, it is updated.
> What I am doing wrong in the script ( $_POST['helper1_pos'] gets value
from
> the form). It shows error even if the cell is empty.
>
> if (!is_null($_POST['helper1_pos'])) {
> echo "Sorry! Helper 1 position already volunteered.";
> exit;
> }
> else {
> //update
> }
>
> Thanks.
> Ashok.
>
>
[Back to original message]
|