ainoy31 Posted July 24, 2007 Share Posted July 24, 2007 Having an issue with getting this to work: echo "<a style = "color:#FFFFFF; text-decoration: none" href = "../myFlights.php">Click Here</a> to view your flights."; thx for the help. Link to comment https://forums.phpfreaks.com/topic/61540-tag-inside-php/ Share on other sites More sharing options...
soycharliente Posted July 24, 2007 Share Posted July 24, 2007 You need to escape the double quotes. If you include double quotes inside the php echo statement, it will think you closed the string to output. <?php echo "<a style=\"color:#fff;text-decoration:none;\" href=\"../myFlights.php\">Click Here to view your flights</a>."; ?> The \ character tells php that you want the character following to literally appear in the string for output. Link to comment https://forums.phpfreaks.com/topic/61540-tag-inside-php/#findComment-306294 Share on other sites More sharing options...
LiamProductions Posted July 24, 2007 Share Posted July 24, 2007 <?php echo "<a style=\"color:#FFFFFF; text-decoration: none\" href = \"../myFlights.php\">Click Here[/url] to view your flights."; ?> I think i just did it right... Im new to PHP too... Plus you can't have Qoutes (") inside echos without using a back slash. Link to comment https://forums.phpfreaks.com/topic/61540-tag-inside-php/#findComment-306380 Share on other sites More sharing options...
soycharliente Posted July 24, 2007 Share Posted July 24, 2007 That's exactly what I said. Plus, ainoy31 had an HTML syntax error that I fixed (the [ /url ] thing). Link to comment https://forums.phpfreaks.com/topic/61540-tag-inside-php/#findComment-306389 Share on other sites More sharing options...
redarrow Posted July 24, 2007 Share Posted July 24, 2007 charlineholder you so correct, But i think m8 in my opeion that inline css is bad for html becouse the idear off css is to create templates via a seprate page. what do you all think. Link to comment https://forums.phpfreaks.com/topic/61540-tag-inside-php/#findComment-306397 Share on other sites More sharing options...
soycharliente Posted July 24, 2007 Share Posted July 24, 2007 I agree as well, but one step at a time Link to comment https://forums.phpfreaks.com/topic/61540-tag-inside-php/#findComment-306486 Share on other sites More sharing options...
LiamProductions Posted July 24, 2007 Share Posted July 24, 2007 Hmm... I thought he wanted that [/url] on it... so i just left it. Link to comment https://forums.phpfreaks.com/topic/61540-tag-inside-php/#findComment-306590 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.