faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

11 of 51 people (22%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

How can i execute and php with javascript and how should be the php code?

Feb 24th, 2008 19:46
dman, Hugo Besteiro, Humberto Costa, http://www.ttnr.org


//i don't know if is this but...
<?
$msg="hello world";
echo"<SCRIPT>
  function alertX()
  {
    alert('$msg');
  }
 </SCRIPT>
<img src='ex.gif' onclick='alertX();'>";
?>