1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help with submit form

Discussion in 'HTML & JavaScript' started by SquirlyNutz, Jul 11, 2010.

  1. SquirlyNutz

    SquirlyNutz Power Member

    Joined:
    Feb 20, 2009
    Messages:
    671
    Likes Received:
    495
    Location:
    Toronto
    i want to place a fake "submit email" form on my site, so when the user enters his email and clicks submit,he is sent to a page of my choice.
    Could someone please help me with this? or please edit the following code?

    <form name="myform" action="handle-data.php">
    <font face="tahoma" size="2" color="#ffffff">Submit Email: <input type='text' name='query' />
    <input type="submit" value="Submit" /><input type="reset" /></a>
    </form>
     
  2. dario1977

    dario1977 Regular Member

    Joined:
    Jul 6, 2010
    Messages:
    245
    Likes Received:
    36
    Location:
    Europe
    Home Page:
    Do you need to gather the email of the user or you just need a button that redirects him to your desired page ? or both ?
     
  3. SpazzyMcSpazz

    SpazzyMcSpazz Regular Member

    Joined:
    Apr 20, 2009
    Messages:
    261
    Likes Received:
    76
    just put this sucker in
    onsubmit="location.replace(thenextpage.html);"
     
  4. tacopalypse

    tacopalypse Executive VIP Jr. VIP Premium Member

    Joined:
    Nov 30, 2009
    Messages:
    980
    Likes Received:
    2,485
    Home Page:
    well, just in case you still haven't figured it out after 20 days...

    Code:
    <form name="myform" action="[COLOR="Red"]handle-data.php[/COLOR]">
    just replace that with whatever page you need the form to redirect to
     
  5. onetech

    onetech Newbie

    Joined:
    Aug 9, 2010
    Messages:
    9
    Likes Received:
    0
    why do you need thats code?