Ratee Posted August 12, 2011 Share Posted August 12, 2011 okay so i have these 2 files... Register and Login and i want to add css to them both but it wont let me add div id's e.c.t to them without getting errors, please help!!! theses are the 2 files below... [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/244574-login-register-css-help/ Share on other sites More sharing options...
JasonLewis Posted August 12, 2011 Share Posted August 12, 2011 You'd be better off posting the code you're having problems with, and not entire files. It makes it easier for us to help you. Post the code that is causing the errors, and the errors themselves. Just to clarify, you can't write HTML inside PHP unless it's stored in a variable or echo'd, and in those cases you must ensure your quotes are matched correctly. You can break out of PHP and have HTML & CSS in your code, then go back into PHP. Something like this is wrong: if($somevariable == 'somevalue'){ <input type="text" name="foo" value="bar" /> } That would throw an error, you need to use echo: if($somevariable == 'somevallue'){ echo '<input type="text" name="foo" value="bar" />'; } Link to comment https://forums.phpfreaks.com/topic/244574-login-register-css-help/#findComment-1256296 Share on other sites More sharing options...
cssfreakie Posted August 12, 2011 Share Posted August 12, 2011 Please just post the relevant code in code tags, give us the exact error you receive. Moving this to php, since this involves php not css.(css is either valid or not, it doesn't give errors) Link to comment https://forums.phpfreaks.com/topic/244574-login-register-css-help/#findComment-1256414 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.