wright67uk Posted April 29, 2011 Share Posted April 29, 2011 Hi im having trouble getting the below code to listen to my css margin settings. Just to clear up the server side of things, can anybody tell me wether or not im using the correct syntax in the code below? else { echo("<p class=\"passed\">Thankyou for submiting your details, you will be added to our directory shortly</p>"); }} Link to comment https://forums.phpfreaks.com/topic/235137-echo-p-class-and-css-problem/ Share on other sites More sharing options...
trq Posted April 29, 2011 Share Posted April 29, 2011 The echo is fine, it doesn't require the () braces though (though they will also work). Link to comment https://forums.phpfreaks.com/topic/235137-echo-p-class-and-css-problem/#findComment-1208433 Share on other sites More sharing options...
fugix Posted April 29, 2011 Share Posted April 29, 2011 the only thing that I notice is that you are using 2 closing } ....unless you have code above this else statement that requires it Link to comment https://forums.phpfreaks.com/topic/235137-echo-p-class-and-css-problem/#findComment-1208439 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.