Re: recursion?????
| From: | Bas Jobsen | Date: | Sat, 15 Feb 2003 00:53:25 +0000 |
| Subject: | Re: recursion????? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135620@lists.php.net to get a copy of this message | ||
not tested
> Basically, have the form action call itself .... hince the recursion.
> Any suggestion/examples?
<?
$field1=false;
if(isset($_POST['submit']))
{
/*check*/
if(isset($_POST['field1']) &&
$_POST['field1']=='okay')header('Location:
registration.php');
else $field1=true;
}
?>
<form action=<?=$SERVER['PHP_SELF']?> method="POST">
<input type="text" name="field1"
value="<?=isset($_POST['field1'])?$_POST['field1']:''?>"><?=$field1?'*':''?>
<input type="submit" name="submit" value="GO">
</form>