|
Posted by Rik on 02/14/07 19:05
On Wed, 14 Feb 2007 19:56:23 +0100, Kim André Akerø
<kimandre@NOSPAMbetadome.com> wrote:
> Leon wrote:
>
>> Hi Chaps,
>>
>> I have been looking around the internet and I really can't see what
>> I'm doing wrong here !
>>
>> This code works in firefox, but not internet explorer.
>>
>> Any suggestions please? Internet Explorer just doesnt update the
>> action of the form so when you hit the button - it seemingly just
>> refrehes the page!
>>
>> <form name="actions" action="" method="post">
>> <select name="action" class="formBox">
>> <option value="null" onclick="this.form.action.value='';">Select
>> Action From List <option value="resendActEmail"
>> onclick="this.form.action.value='./admin_process.php?a=resend';">Re-Se
>> nd Activation Email <option value="deletaccount"
>> onclick="this.form.action.value='./admin_process.php?a=delete';">Delet
>> e This Account </select> <input class="formBox" type="submit"
>> name="submit" value="Go"> </form>
>
> Why would you do it this way when you can simply do it like this:
>
> <form action="./admin_process.php" method="post">
Euhm, GET?
> <select name="a" class="formBox">
> <option value="">Select Action From List
> <option value="resend">Re-Send Activation Email
> <option value="delete">Delete This Account
> </select>
> <input class="formBox" type="submit" name="submit" value="Go">
> </form>
A whole lot simpler indeed. I'd prefer buttons though:
<form action="./admin_process.php" method="get">
<input type="submit" name="a" value="resend">
<input type="submit" name="a" value="delete">
</form>
Allthough it's a pity the text on the button and the actual value cannot
differ, but that's either pretty quickly solved server-side.
--
Rik Wasmus
Navigation:
[Reply to this message]
|