JavaScript or PHP bug?
Добавлено: 25 сен 2003, 13:49
We have the next form index.php:
The problem is that if you click on [?] and then you fill up the fields, submit the form. When you return back to the form the fields are empty. If you don't click [?] before submiting the form everything is ok.
Now, if a change the extension of index.php to index.html and repeat all these steps vererything is cool again. Somebody have met something similar?
Код: Выделить всё
<html>
<body>
<form action="doit.php" method="post">
Username:
<input type="text" name="uname" maxlength="40">
<a href="newwindow.php" target=_blank onClick="popupWin = window.open(this.href, 'contacts', 'width=400,height=300,top=100'); popupWin.focus(); return false;">[?]</a>
Age:
<input type="text" name="age" maxlength="4">
<input type="submit" name="submit" value="Login"><br>
</form>
</body>
</html>
Now, if a change the extension of index.php to index.html and repeat all these steps vererything is cool again. Somebody have met something similar?