Please help me... not able to figure out what is wrong with this code!
<?php
if($_POST == "submitted")
{
echo '
<script type="text/javascript">
// Used them both and to my horror, none of them work!!!
document.BPC.postback.innerHTML = "postback";
document.getElementById("postback").innerHTML = "postback";
</script>
';
}
?>
<html>
<head>
<title> Help me! </title>
</head>
<body>
<form name="BPC" action="<?php echo $_SERVER; ?>" method="POST">
<input type="hidden" name="form_action" value="submitted">
<input type="submit" name="Submit" value="Enter">
<div id="postback" name="postback">
<font color="red"> No Post Back </font>
</div>
</form>
</body>
</html>