Reply to Re: Command Line Question

Your name:

Reply:


Posted by J.O. Aho on 09/21/07 16:28

amerar@iwc.net wrote:
> Hi,
>
> I have some javascript commands I want executed when a user clicks on
> an href link. My code is below. The code works fine with the first
> command, but when I add the second and third commands, nothing
> happens.
>
> However, if I remove the first command, everything works fine. But I
> need all three statements. Can anyone see the error in my ways?
>
> Thanks!
>
> <a href=\"javascript:emailvalidation('$email','The E-mail address is
> not valid');document.OptOut.action = 'activate.php?type=2&db=$db&ref=
> $ref&acronym=$acronym';document.OptOut.submit();\">Click Here</a>
>

Try to set the javascript to be executed in onclick, see to that the
last thing is false.

set the href to point at the page itself.

As long as you don't have this in a php echo line, skip the backslashes.

--

//Aho

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация