I am trying to get "test" to print on the screen whenever you click a button. Like so:
Code: Select all
<html>
<head>
<title>Test</title>
<script language="javascript">
<!--
function Test()
{
document.write("Test");
}
//-->
</script>
</head>
<body>
<?php
print('<form method="post">');
print('<input type ="button" value="Test" onclick="Test()"');
print('</form>');
?>
</body>
</html>
Code: Select all
<?php
print('<script language="javascript">Test();</script>');
?>