RE: [PHP-WIN] Wierd Windows Problems
| From: | Sean Malloy | Date: | Fri, 31 Jan 2003 22:32:14 +0000 |
| Subject: | RE: [PHP-WIN] Wierd Windows Problems | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18279@lists.php.net to get a copy of this message | ||
Or
<button type="submit" name="action"
value="search">Search</button>
<button type="submit" name="action"
value="add">Add</button>
imo: <button> tag isn't standard HTML..
I would go with:
<form action="page.php" method="post">
<input type="hidden" name="action" value="search" />
<input type="submit" value="Search" />
</form>
<form action="page.php" method="post">
<input type="hidden" name="action" value="add" />
<input type="submit" value="Add">
</form>
-----Original Message-----
From: Tobias Brandl [mailto:darkrayden@gmx.de]
Sent: Friday, 31 January 2003 11:26 PM
To: php-windows@lists.php.net
Subject: Re: [PHP-WIN] Wierd Windows Problems
this is a submit button.. so you start something..
so why do you do like this:
<form name="xxxxx" action="xyadf.php" method="post">
<input type="submit" value="Search">
</form>
and
<form name="xxxxx" action="xyadf1.php" method="post">
<input type="submit" value="Add">
</form>
this should work fine...
"Chris Deam" <chrisdeam@deam.digitalhomeport.com> schrieb im Newsbeitrag
news:20030130190307.52896.qmail@pb1.pair.com...
> Okay, you are correct about the coding practices, but this is not really
> helping me. One other thing I forgot to mention is that I have two such
> buttons:
> <button type="submit" name="action">Search</button>
> <button type="submit" name="action>Add</button>
> When I click on search, $action is suppossed to be set to Search, but it
is
> actually getting set to Add. Any ideas?
>
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php