RE: anchor inside form

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2009-08-25 at 12:28 +0200, Arno Kuhl wrote:
> -----Original Message-----
> From: leledumbo [mailto:leledumbo_cool@xxxxxxxxxxx] 
> Sent: 25 August 2009 09:55 AM
> To: php-general@xxxxxxxxxxxxx
> Subject:  anchor inside form
> 
> If I have an anchor inside form, how can I send form using the anchor
> without displaying target url? I've tried the code below but IE says that
> this.form is null or empty and Firefox does nothing.
> 
> <form action="somewhere.php" method="get">
>     # Pick me
> </form>
> --
> 
> You can use javascript behind a button or image or link to submit the form
> from anywhere in your html page. You don't need the anchor but you do need a
> form name. Something like:
> 
>   href="javascript:document.FormName.submit();"
> 
> Cheers
> Arno
> 
> 
And all it takes for that to break is for someone to turn off
Javascript...

Thanks,
Ash
http://www.ashleysheridan.co.uk




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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux