05-14-2008, 01:37 AM
|
#6 (permalink)
|
|
The Addict
Join Date: Jan 2008
Location: los angeles
Posts: 305
Thanks: 44
|
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
|
|
|
|