- Impact
- 11
How do i get information from a field and then add it to an if statement?
I have:
Im going to end up searching a database and if the information thats entered is found, they it will say its found, if not it would say its not found.
Nvm, i got it.
I have:
PHP:
<?
if($check==yes){
echo'OK';
}
else {
echo'NO';
}
?>
<form name="searchform" method="post" action="check.php">
<input type="text" name="check" id="check" value="<? $check ?>" size="25">
<input type="hidden" name="action" value="check">
<input type="submit" name"submit" value="Check">
</form>
Im going to end up searching a database and if the information thats entered is found, they it will say its found, if not it would say its not found.
Nvm, i got it.
Last edited:








