Re: after submitting, working with data on same page
| From: | Matt M. | Date: | Fri, 09 Jul 2004 20:22:20 +0000 |
| Subject: | Re: after submitting, working with data on same page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190104@lists.php.net to get a copy of this message | ||
>:if ($calcentry) {...}part of my code and do some calculations with
php and mysql >and put my output into textarea2.
if ($_POST['calcentry'] == 'Calc Your Entry') {
}
is one way to do it
>So my first question is how do I keep the data in textarea1 so when I
perform my >submit I can do some calculations on it etc? Then how can
I place my results >into textarea2.
<textarea name="textarea1"><?php echo
htmlentities($_POST['textarea1']);?></textarea>
<textarea name="textarea2"><?php echo
$yourcalculatedvariable;?></textarea>