•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 455,991 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,771 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 1489 | Replies: 3
![]() |
| |
•
•
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,098
Reputation:
Rep Power: 8
Solved Threads: 240
php Syntax (Toggle Plain Text)
<?php $data[0]=88; $data[3]=44; $data[4]=2232; echo " <html> <head> <script type=\"text/javascript\"> function test(){ alert('$data[0]'); } </script> </head> <body onload=\"javascript: test();\"> </body> </html>"; ?>
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
*PM asking for help will be ignored*
*PM asking for help will be ignored*
•
•
Join Date: Aug 2007
Posts: 10
Reputation:
Rep Power: 2
Solved Threads: 1
thank you for your helping,but I need to first check the data ,If data exists then run the js code otherwise not.
this like:
first : read data from database .
second : check the data
third : if data exists then run js otherwise not.
i do it in the same file.but I want to simplify my code ,so I need to place the js code in the other file.
i just need if their have any possibility to get the array data of php in js.
this like:
first : read data from database .
second : check the data
third : if data exists then run js otherwise not.
i do it in the same file.but I want to simplify my code ,so I need to place the js code in the other file.
i just need if their have any possibility to get the array data of php in js.
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
access ajax asp blog breach broadband code combo competition crime daniweb data data protection data transfer database developer development drive dropdownlist firefox forensics gentoo government hard hardware hitachi home html internet javascript linux microsoft module msdn net news office php reuse security site software spam sql storage terabyte vista web wikipedia
- Sending pic attachments via PHP form (PHP)
- writitng data from php to mysql (PHP)
- PHP Sendmail Tutorial (PHP)
- Googles php and MySQL preferences (Search Engine Optimization)
- Read data from Access Database through PHP (PHP)
- Easy Qu - Getting data with PHP (PHP)
- How to stop Php is something does not exist (PHP)
- help with php and javascript (PHP)
- Posting form data to an Oracle database (JavaScript / DHTML / AJAX)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Can you?
- Next Thread: Need help with Javascript



Hybrid Mode