This is a discussion on How do I insert javascript in php code? within the PHP Programming forums, part of the Web Development category; Hi all.... How do I insert javascript in php code? Thanks & Regards, Itbarota....
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi all...... You just echo / print the javascript like you would do with html, like: <? echo "<script language=\"JavaScript\">\n"; echo "alert("javascript from php");\n"; echo "</script>"; ?> |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Insert Multiple records using single Insert Statement | vadivelanshanmugam | Database Support | 0 | 03-04-2008 10:26 PM |
| How to get keyboard response in javascript code? | sip | HTML, CSS and Javascript Coding Techniques | 7 | 01-11-2008 04:04 AM |
| Bouble popup javascript code not working | sathian | HTML, CSS and Javascript Coding Techniques | 1 | 12-04-2007 01:13 AM |
| Can I include JavaScript code from external JS files, rather than embedding all my sc | Pvinothkumar | HTML, CSS and Javascript Coding Techniques | 0 | 09-13-2007 04:49 AM |
| What is Bulk Insert in sql? | oxygen | Database Support | 7 | 08-03-2007 01:31 PM |