RE: [PHP] after suubmitting, working with data on same page
| From: | Hull, Douglas D | Date: | Fri, 09 Jul 2004 20:51:02 +0000 |
| Subject: | RE: [PHP] after suubmitting, working with data on same page | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-190108@lists.php.net to get a copy of this message | ||
Sorry about that. It did execute my if but shows nothing for $zwords.
So my echo shows: xxxxxx
after entering "cat" and pressing my calc your entry.
How do I get my value(s) I entered in to work with?
Thanks
> ----------
> From: Marek Kilimajer
> Sent: Friday, July 9, 2004 1:41 PM
> To: Hull, Douglas D
> Cc: Note To Php general List (E-mail)
> Subject: Re: [PHP] after suubmitting, working with data on same page
>
> 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
> >
>
>
>