Re: php is not working with submit button
| From: | Analysis & Solutions | Date: | Mon, 08 Jul 2002 16:50:19 +0000 |
| Subject: | Re: php is not working with submit button | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-106123@lists.php.net to get a copy of this message | ||
Hi Terry:
On Mon, Jul 08, 2002 at 11:36:46PM +0800, Terry Cheung wrote:
>
> to the mysql database, the only problem is all the php pages seem likes do
> not response to the submit button, it just direct back to the same page
Then you're not writing your form correctly.
<form method="POST" action="script.name.php">
<input type="submit" name="Submit" value="Do it" />
</form>
Where, "script.name.php" is the name of the script you want the submitted
data to be received by. Then, in this example, script.name.php needs to
handle the data:
<?php
echo 'This is the receiving end. Submit = ' . $_POST['Submit'];
?>
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409