Hello All,
I am having some problem with my code. Here it is:
Everything is working but the onLoad part. It runs through the color changes so I know that echo has been executed as it should. What am I doing wrong?
Thanks,
Zych
I am having some problem with my code. Here it is:
Code:
<?php
if($_POST['name'] != NULL) {
echo "<body bgcolor='#7692AC' onLoad='alert('hello world!')'>";
} else {
echo "<body bgcolor='#000000'>";
}
?>
Everything is working but the onLoad part. It runs through the color changes so I know that echo has been executed as it should. What am I doing wrong?
Thanks,
Zych