View Single Post
Old 05-14-2008, 01:37 AM   #6 (permalink)
sarmenhb
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 305
Thanks: 44
sarmenhb is on a distinguished road
Default

perhaps if we did this then its possible


Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script language="javascript" type="text/javascript">

function jscall() {

var output = "<?php echo $output = "php passwed to javascript"; ?>";
alert(output);


}
</script>
</head>

<body>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="submit" name="submit" value="submit" onclick="jscall()" />
</form>
</body>
</html>
__________________
no signature set
sarmenhb is offline  
Reply With Quote