0

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>
1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by niche1
0

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

Thanks ,

Niche

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.