Javascript във echo"";

IvanAdamov

Registered
<a href="registration.html" onclick="NewWindow(this.href,'mywin','310','490','no','center');return false" onfocus="this.blur()">Register</a>

синтаксиса е грешен. Пробвах какво ли не...но не го валидира. Моля ви дайте ми малко хелпче :)
 
ето го цялото echo:
Код:
echo '
            	<form name="login" method="post" action="checklogin.php">
				
				<h1>Member Login</h1>
				<h2>Username:</h2>
				<input name="username" type="text" id="username">
				<h2>Password:</h2>
				<input name="password" type="password" id="password"><br />
				<input type="submit" id="submit" name="Submit" value="Login"><br /><br />
                <a href="registration.html" onclick="NewWindow(this.href,'mywin','310','490','no','center');return false" onfocus="this.blur()">Register</a>
				</form>
            ';
 
пробвай така

PHP:
echo '
               <form name="login" method="post" action="checklogin.php">
            
            <h1>Member Login</h1>
            <h2>Username:</h2>
            <input name="username" type="text" id="username">
            <h2>Password:</h2>
            <input name="password" type="password" id="password"><br />
            <input type="submit" id="submit" name="Submit" value="Login"><br /><br />
                <a href="registration.html" onclick="NewWindow(this.href,\'mywin\',\'310\',\'490\',\'no\',\'center\');return false" onfocus="this.blur()">Register</a>
            </form>
            ';
 
На мен лично това ми помага:
Код:
onclick=\"NewWindow(this.href,'mywin','310','490','no','center');return false\" onfocus=\"this.blur()\"
:)
 

Back
Горе