Ситуация такая в php файле есть echo " <HTML> <body class="login-body" leftmargin="0" topmargin="0" onload="setThemeLang();" marginheight="0" marginwidth="0"> <link href="template/css/main.css" rel="stylesheet" type="text/css"><title>Авторизация</title> <head> <p><FONT COLOR="red" face=arial size=+4> </FONT> <FORM ACTION="agent/statistika.php" METHOD="POST"> </p> <p align="center"> </p> <p align="center"> </p> <p align="center"> </p> <p align="center"> </p> <p align="center"> <table class="login-table" border="0" cellpadding="0" cellspacing="0"> <tbody><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr> <td class="login-title-r"><img src="images/ft-left.png" height="30" width="8"></td> <td class="login-title">Авторизация</td> <td class="login-title-r"><img src="images/ft-right.png" height="30" width="8"></td> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <td> <table class="login-content" border="0" cellpadding="0" cellspacing="0" width="100%"> <td> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <td> <p align="center"> <IMG SRC='images/ico_users.png' border=0> </p> </td> <br> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <td class="login-field-title"> <p align="center"> <b><font size="3" >СМК Недвижимость </b> </p> </td> <table border="0" cellpadding="0" cellspacing="0" height="20" width="100%" ><form name="authform"> <br> <td class="login-field-title">Логин:</td> <td> <p align="left"> <select name="agentper" class="login-input"> <option value"0"></option> <?php while($num_rows = mysql_fetch_row($result)) { echo "<option value='$num_rows[1]'>$num_rows[1]</option>"; } ?> </select> </p> </td> </table> <table border="0" cellpadding="0" cellspacing="0" height="20" width="100%"><form name="authform"> <td class="login-field-title">Пароль:</td> <td> <p align="left"> <INPUT TYPE="password" NAME="passuser" SIZE="20" MAXLENGTH="10" class="login-input"> <INPUT TYPE='hidden' NAME='agdate' VALUE=<?php echo date("d.m.Y"); ?>> <INPUT TYPE='hidden' NAME='agtime' VALUE=<?php echo date("H.i"); ?>> </p> </td> </table> <table border="0" cellpadding="0" cellspacing="0" height="50" width="100%"><form name="authform"> <td> <p align="center"> <INPUT TYPE='submit' VALUE='Войти' class='login-input'> </p> </td> </table> </td> </table> </body> </html> " Но при запуске файла интерпретатор жалуется на наличие кавычек " в более раннех строках , если менять все кавычки на одиночные ' , то неработает <INPUT TYPE='hidden' NAME='agdate' VALUE=<?php echo date("d.m.Y"); ?>> <INPUT TYPE='hidden' NAME='agtime' VALUE=<?php echo date("H.i"); ?>> , Вапрос как с этим боротся ?
Хз как другим, но мне на такую кашу смотреть даже не хочется. Есть же BBcode PHP и HTML. И форматируй с их помощью.
Согласен, но ошибка сама напросила при просмотре первых строк) nightguide Вам нужно либо экранировать двойные кавычки, либо заменить их на одинарные, тогда интерпретатор не будет выдавать ошибку. Либо пользуйтесь Heredoc Вот ссылка: http://ru.php.net/manual/ru/language.types.string.php