56 users online (1 members and 55 guests)  

Thread: form submission


  Results 1 to 7 of 7

Related

  1. submission form help    Forum: Website Scripts Forum
    Replies: 1
  2. form submission    Forum: Website Scripts Forum
    Replies: 2
  3. Form Submission    Forum: Web Hosting Forum
    Replies: 9
  4. Form Submission    Forum: Website Scripts Forum
    Replies: 2
  1. #1
    pegboy's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Aug 2001
    Location
    Knoxville, TN
    Posts
    76

    form submission

    what's the code for a form submission in a new window? i wasn't sure it it should go in the form action tag, or in the submit button.
    robert koons

  2. #2
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    so you want the action to go to a new page and the window pop up or the clicking on the submit button make a window pop-up?

    What language are you using?

  3. #3
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    try this:

    Code:
    <form method=POST action="javascript:window.open('blah.php','def','height=300,width=300')">
    Name: <input type="text" name="hello">
    <input type="Submit" value="Submit" name="submit">

  4. #4
    pegboy's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Aug 2001
    Location
    Knoxville, TN
    Posts
    76
    i was messing with it late last night i finally figured it out. the solution was so easy i felt pretty stupid asking about it here's what i used:

    <form name="FormName" action="https://shop.cdstreet.com/cdstreet/Cart.po" method="post" enctype="application/x-www-form-urlencoded" target="blank">

    i'm building an online store for my record label. i wanted the shopping cart in my site, but i wanted the info sent to another window so you could see the "https" and the little lock at the bottom. if you're curious about the actual page check it out here, http://www.thenewbeat.net
    robert koons

  5. #5
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    althought ur way did the same thing as mine it WAS a lot shorter, haha.

    Your sites lookin pretty good...

    Dave, why when you post is there always a seperation between 'java' and 'script' when in the original message you put them as 'javascript'?

  6. #6
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel
    I believe that is a safety built into VBulletin. I have seen what happens to sites that use UBB if some punk posts malicious code.

    Dave
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  7. #7
    Derek's Avatar
    Be Yourself

    Status
    Offline
    Join Date
    Aug 2001
    Location
    St. George, Utah, USA
    Posts
    466
    haha I know what you mean...

    For my PHP/MySQL class I just passed, at the end we each prepared a bunch of database/php driven sites, and then tried to hack them (as part of the assignment). Haha there's some pretty good stuff you can do if you don't block out some things



Tags for this Thread