View Full Version : Form Opens New Window

Mar 17th, 2005, 11: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" />

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.

Mar 18th, 2005, 12:10 AM
Where can we view this in operation?

Mar 18th, 2005, 12:42 AM

Mar 22nd, 2005, 08:55 PM
target = "_self"

Mar 23rd, 2005, 12:40 AM
You know what might help a lot...

If I named my iframes. xD