Re: PHP and JavaScript

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

 



sam rumaizan wrote:
In PHP when you click on the menu text Update The Record the menu doesn’t open it takes you to another page. But in HTML when you click on the menu text Update The Record the menu dose open.
<A HREF='page1.html' onClick='return toggleMenu('menu1')'>Update The Record</A>
</H3>

When you try the PHP version, do a "View Source" in your browser. If you can see the PHP code then you haven't set your web server up to process PHP files. I'm guessing this is causing the Javascript block at the top of your script to be ignored by the browser.

If that's not the case then you need to explain exactly how you are running the PHP version.

-Stut

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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux