after suubmitting, working with data on same page
| From: | Hull, Douglas D | Date: | Fri, 09 Jul 2004 20:39:11 +0000 |
| Subject: | after suubmitting, working with data on same page | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-190106@lists.php.net to get a copy of this message | ||
Just to make it simple this is my whole page for now, when putting words in the textarea
"zwords" and hitting "calc your entry" it never goes into my if statement:
<html>
<body>
<?
if ($_POST['$calcentry'] == "Calc Your Entry")
{
echo 'xxx' . $zwords . 'xxx';
}
?>
<textarea name="zwords" rows="20" cols="30" wrap
/>
</textarea>
<textarea name="zoutput" rows="20"
cols="70" wrap />
</textarea> <BR>
<form
action="<?=$_SERVER['PHP_SELF']?>" method="post">
<br>
<input type="submit" name="calcentry" value="Calc Your
Entry" />
</form>
</body>
</html>
Thanks,
Doug