...

View Full Version : Form Opens New Window



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.

duforudesign
03-17-2005, 11:10 PM
Where can we view this in operation?

Kurashu
03-17-2005, 11:42 PM
http://dev.greenbomber.com/chat/chat.php

NeilF
03-22-2005, 07:55 PM
target = "_self"

Kurashu
03-22-2005, 11:40 PM
You know what might help a lot...

If I named my iframes. xD



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum