Jump to content

Login && Register CSS Help


Ratee

Recommended Posts

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" />';
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.