Username: Save?
Password:
Home Forum Links Search Login Register*
    News: Keep The TechnoWorldInc.com Community Clean: Read Guidelines Here.
Recent Updates
[April 24, 2024, 11:48:22 AM]

[April 24, 2024, 11:48:22 AM]

[April 24, 2024, 11:48:22 AM]

[April 24, 2024, 11:48:22 AM]

[April 03, 2024, 06:11:00 PM]

[April 03, 2024, 06:11:00 PM]

[April 03, 2024, 06:11:00 PM]

[April 03, 2024, 06:11:00 PM]

[March 06, 2024, 02:45:27 PM]

[March 06, 2024, 02:45:27 PM]

[March 06, 2024, 02:45:27 PM]

[March 06, 2024, 02:45:27 PM]

[February 14, 2024, 02:00:39 PM]
Subscriptions
Get Latest Tech Updates For Free!
Resources
   Travelikers
   Funistan
   PrettyGalz
   Techlap
   FreeThemes
   Videsta
   Glamistan
   BachatMela
   GlamGalz
   Techzug
   Vidsage
   Funzug
   WorldHostInc
   Funfani
   FilmyMama
   Uploaded.Tech
   MegaPixelShop
   Netens
   Funotic
   FreeJobsInc
   FilesPark
Participate in the fastest growing Technical Encyclopedia! This website is 100% Free. Please register or login using the login box above if you have already registered. You will need to be logged in to reply, make new topics and to access all the areas. Registration is free! Click Here To Register.
+ Techno World Inc - The Best Technical Encyclopedia Online! » Forum » THE TECHNO CLUB [ TECHNOWORLDINC.COM ] » Programming Zone » PHP
 Integrate PHP with Javascript menus, alert box or
Pages: [1]   Go Down
  Print  
Author Topic: Integrate PHP with Javascript menus, alert box or  (Read 921 times)
Hellraiser
TWI Trailblazer
*******



Karma: 3
Offline Offline

Posts: 2476


View Profile
Integrate PHP with Javascript menus, alert box or
« Posted: August 29, 2007, 10:55:17 AM »


Integrate PHP with Javascript menus, alert box or

This has been such a headache for me, working with javascript menus, alert boxes++ and dynamic data. Especially menus have given me a trip around the world. I kept compromising with my dynamic data and static menus, couldnt figure out what to do. I tried CSS menus on some of websites, they work fine but CSS menus are phew.. another headaches, stomach aches ++

And then one day there was a tiny ray of light in my dark tunnel of thoughts, I thought why don't I try and integrate static with dynamic ie PHP and javascript. The answer was so simple and easy to do that I couldn't believe I have been trying to do all those other things.

Yeh... so how do that....? Lets start with an example as usual.

Example

Lets consider you want to display today's date in an alert box for xyz reason.

Code:
<? $date=date('d-M-Y'); ?>
<script>alert("Date: <?echo $date?>");</script>

Note: If this example doesn't work check if PHP is installed on your webserver. Click here to install and test PHP on your local web server.

Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Copyright © 2006-2023 TechnoWorldInc.com. All Rights Reserved. Privacy Policy | Disclaimer
Page created in 0.217 seconds with 24 queries.