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] Quote Link to comment 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" />'; } Quote Link to comment 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) 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.