the html version of this php script works. What's wrong with this php script? It produces:Parse error: parse error, expecting '','' or '';'' in C:\wamp\www\temp8.php on line 5

<html>
<body>

<?php
echo '<input onMouseOver="this.style.color='red'" onMouseOut="this.style.color='blue'"
style="position:absolute;left:111px;top:290px;border:none; color:blue;border:none;background:transparent;font:bold;font-size:150%;cursor:pointer;"
   type="Submit" value="Print Selections" />';
   ?>
</body>
</html>

Forgot to escape the the single quote: echo '<input onMouseOver="this.style.color=\'red

Thanks ,

Niche

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.