Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Aug 2004
    Location
    The US of A
    Posts
    767
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Form Opens New Window

    Ok, I am performing an experiment with a PHP Chat; however, I have encountered a bit of a problem.

    Code:
    <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.

  • #2
    New Coder
    Join Date
    Mar 2005
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    Where can we view this in operation?

  • #3
    Regular Coder
    Join Date
    Aug 2004
    Location
    The US of A
    Posts
    767
    Thanks
    1
    Thanked 0 Times in 0 Posts

  • #4
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    target = "_self"

  • #5
    Regular Coder
    Join Date
    Aug 2004
    Location
    The US of A
    Posts
    767
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You know what might help a lot...

    If I named my iframes. xD


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •