Ask a Question related to PHP Development, Design and Development.
-
Hu Zhenghui #1
Re: value submit button
You can get the button value use code below:
<?php echo $_POST[submit];?>
<form method="post">
<input type="submit" name="submit" value="submit1">
<input type="submit" name="submit" value="submit2">
</form>
--
----------------------------------------------------------------------------
Hu Zhenghui
IBM Certified Solutions Expert IBM WebSphere Studio
<New Intranet Series - Intranet DIY> ISBN 7-5606-1163-X
<Flash MX Tutorial for Training> ISBN 7-900107-51-7
mailto:webmaster@huzhenghui.51.net
[url]http://huzhenghui.51.net[/url]
----------------------------------------------------------------------------
"Florian SchäFer" <florian.schaefer@talknet.de> дÈëÏûÏ¢
news:8f3tei$6cs$1@va.php.net...> Hallo out there,
>
> i hava an document, with one form and two Submit buttons.
> How can i check in the target document wich button is pressed?
> tried something like if ($submit == 'xxx') .
> anyone has a hint?
>
>
Hu Zhenghui Guest
-
Submit button style
Hi, I am trying to change the style of a submit button ('<input type="submit" value="Update">') using stylesheets but everytime I use something... -
Submit button
I have a web form with a few text fields some validataion and a submit button. When I click the submit bittin the serverside event does not... -
[PHP] using submit button and PHP-HELP
thanx for your help, Ive got flu and all these small things seem to be escaping my eyes. I just want to ask you a small question: If i want this... -
using submit button and PHP-HELP
Hi, I have a form that has a submit button in it, when the button is pressed I want it to reload the same page, with the same URL, however when I... -
Help with Submit button...
Hi, I have a graphic, I wanted to use it for a submit button. For some reason it does not work.. it acts more of a link. The problem with... -
Justin French #2
Re: [PHP] Re: value submit button
Do some testing in a few browsers to see what happens when the user
hits "enter" or "return", rather than clicking on the button(s)... I
*think* you need to put in a hidden element. For example, if you
wanted "submit2" to be the default value:
<?=$_POST[submit]?>
<form method="post">
<input type="hidden" name="submit" value="submit2" />
<input type="submit" name="submit" value="submit1" />
<input type="submit" name="submit" value="submit2" />
</form>
Justin
On Friday, August 1, 2003, at 02:36 PM, hu zhenghui wrote:
> You can get the button value use code below:
>
> <?php echo $_POST[submit];?>
> <form method="post">
> <input type="submit" name="submit" value="submit1">
> <input type="submit" name="submit" value="submit2">
> </form>Justin French Guest



Reply With Quote

