Jump to content

Login && Register CSS Help


Ratee

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.