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. Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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). Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.