Re: after suubmitting, working with data on same page
| From: | Marek Kilimajer | Date: | Fri, 09 Jul 2004 20:41:12 +0000 |
| Subject: | Re: after suubmitting, working with data on same page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190107@lists.php.net to get a copy of this message | ||
if ($_POST['calcentry'] == "Calc Your Entry") {
Hull, Douglas D wrote:
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