Форумы / Cotonti / Support / WHATS WRONG WITH THIS

TwistedGA
#11814 25.04.2009 02:42
<?PHP
/* ====================
[BEGIN_SED_EXTPLUGIN]
Code=quicklogin
Part=header
File=quicklogin.header
Hooks=header.tags
Tags=header.tpl:{QUICK_LOGIN}
[END_SED_EXTPLUGIN]
============ */
if (!defined('SED_CODE')) { die('Wrong URL.'); }

$quick_login = "<form name=\"login\" action=\"users.php?m=auth&amp;a=check&redirect=\" method=\"post\">Username:
               <input type=\"text\" class=\"tinput\" name=\"rusername\" size=\"13\" maxlength=\"32\" onfocus=\"\" /> Password:
               <input type=\"password\" class=\"tinput\" name=\"rpassword\" size=\"13\" maxlength=\"32\" />
               <input type=\"hidden\" name=\"rremember\" value=\"1\"/>
               <input type=\"submit\" style=\"font-size:10px;\" value=\"Login\" />
               <div><input type=\"hidden\" name=\"x\" value=\"GUEST\" /></div><div style=\"display:inline;margin:0;padding:0\"><input type=\"hidden\" name=\"x\" value=\"GUEST\" /></div></form>
               <b>Welcome Guest!     <a href=\"users/register.html\">Register</a>
               <a href=\"users/password-recover.html\">Lost your password?</a></b>";


$t-> assign(array("QUICK_LOGIN" => $quick_login,));

?>


If you use double quotes instead of single quotes on the HTML, you must add the back slash before each double quote or it stops reading it at the first occurance. Alternatively, you can use single quotes and don't have to use the back slahes. I went the fast route to try and fix it for ya.
[color=#CC0000]Lazymod[/color] [color=#000000]Studios[/color]