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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php