Kurashu
03-17-2005, 10:01 PM
Ok, I am performing an experiment with a PHP Chat; however, I have encountered a bit of a problem.
<form name="message" action="chat.php" target="chat" method="post">
<label for="message">Your Message</label> <input type="text" id="message" name="message" / maxlength="1000">
<input type="hidden" name="username" value="" />
<input type="submit" value="Chat" />
</form>
That it of code opens a new window the first time the submit (Chat) button is pressed BUUUUT for insult to injury, when you click submit on the pop-up window, it doesn't submit to a new window.
The target (chat) is an iframe where the chatroom will be housed.
Edit: ...stupid tabs.
<form name="message" action="chat.php" target="chat" method="post">
<label for="message">Your Message</label> <input type="text" id="message" name="message" / maxlength="1000">
<input type="hidden" name="username" value="" />
<input type="submit" value="Chat" />
</form>
That it of code opens a new window the first time the submit (Chat) button is pressed BUUUUT for insult to injury, when you click submit on the pop-up window, it doesn't submit to a new window.
The target (chat) is an iframe where the chatroom will be housed.
Edit: ...stupid tabs.