Hello,
I am creating webpages that are basically written in HTML but uses PHP to alter the HTML depending on variables, and so on.
Though, I am having a problem with quotations.
Here's where I am having trouble:
<TD onmouseover="bgColor='#FF9400'" onmouseout="<?php
if ( $pagename == "subscribe" ){ print "bgColor='#FF9400'"; }
else { print "bgColor='#666666'"; } ?>" <?php
if ( $pagename == "subscribe" ){ print "bgColor='#ff9400'"; }
else { print "bgColor='#666666'"; } ?> height="19">
- because of the quotations, there are two different php lines.
How can I make this into one php string? How can I differ the quotations used in the HTML from those that surround the print (ex: print "text") function?
Thanking you in advance!
Jeff
🙂 🙂