Re: php form with textarea

From: Date: Fri, 05 Jul 2002 12:07:52 +0000
Subject: Re: php form with textarea
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-105629@lists.php.net to get a copy of this message
looks like it should work. try echoing $action and make sure that it's the value you want. you may want to try $_POST['action'] Adi wrote:
I have a php file with two textarea and one button; i want when i press button, value from textarea2 is filled in textarea1. can u help me? my try is: //file1.php .... if ($action == "change") { $arie1=$arie2; } .... echo "<textarea name='arie1' cols='50' rows='3'>$arie1</textarea>"; echo "<form action=file1.php?&action=change method=post>\n"; echo "<textarea name='arie2' cols='50' rows='3'>$arie2</textarea>";
echo    "<input type='submit' name='submit' value='save'>";
...


« previous php.general (#105629) next »