Is there a way to check if a variable is not equal to a specified value, for example, check if a text input field is not equal to its default value of 'name'.
This sounds confusing, but i am just looking for the syntax for writing the condition of a variable being equal to anything but a certain value, in this case a value of 'enter name.'
I assume its something like:
<?php
if ($POST['name']--code for not equal here--"enter name":
$vername = $POST['name'];
?>
<html>
<head>
</head>
<body>
Name= <?php echo "$vername";
</body>
</html>
<?
else:
echo "Please return and enter your name";
endif;
?>
I'm sure there are parts of this sample code that are incorrect, but i'm mainly concerned with the aforementioned question.
Thanks helping the new guy!
*noah