View Single Post
  #10 (permalink)  
Old 01-29-2009, 07:21 AM
cont911 cont911 is offline
Contributing Member
 
Join Date: 08-22-08
Posts: 58
iTrader: 0 / 0%
this is a simple example of php file, that place url from php code into html/javascript
in this case php code is embedded into html code using php tag <?php ... ?>

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

function fullScreen(theURL) {
window.open(theURL, '', 'channelmode=yes');
}
</script>
</HEAD>



<BODY>

<a href="javascript:void(0);" onClick="fullScreen('<?php
// this is php code
$url = "http://example.com";
echo $url;

?>');">Open Full Screen Window</a>

</body>
 
Reply With Quote