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:[EMAIL PROTECTED]]
Sent: Friday, 31 January 2003 11:26 PM
To: [EMAIL PROTECTED]
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" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to