59 users online (1 members and 58 guests)  

Thread: Forms


  Results 1 to 7 of 7

Related

  1. Forms    Forum: HTML Forum
    Replies: 6
  2. Sub forms    Forum: HTML Forum
    Replies: 2
  3. Forms    Forum: HTML Forum
    Replies: 3
  4. Help with forms please....    Forum: HTML Forum
    Replies: 1
  5. Forms    Forum: HTML Forum
    Replies: 1
  1. #1
    MM2carmaker's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2002
    Posts
    4

    Forms

    Ok. I'm have two questions.

    1. I created a form using the tutorial on this site. However, when I try and test it out by pressing "Submit", it just refreshes the page. I have it set up to e-mail the info to me but when I check my e-mail, it's not there. What am I doing wrong?

    2. How do I make my own Submit button and still have it send the information to my e-mail account?

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hello there.

    All a form does is take the information in the form fields, and 'squirt' them at whatever is specified in the 'action' of the form.

    If there is no 'action', then it will target itself. No good, as the HTML is not clever enough to deal with incoming information.

    You can define the action like this -

    Code:
    <form method="post" action="mailto:dean@quietdean.com">
    This will, in theory, email the results to you. However, this method is very, very unreliable. ideally, you would want to 'squirt' the information to a sendmail script. Most hosts have a 'sendmail' somewhere on the server, see the hosts FAQ's for some clues on how to use them.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    MM2carmaker's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2002
    Posts
    4
    Thanks. I'll try my best.

  4. #4
    Doorknob's Avatar
    Super Newbie

    Status
    Offline
    Join Date
    Jun 2002
    Location
    Malaysia
    Posts
    316

    RE

    to make your own submit button
    input type="button" value="test" name="test" onClick="document.formname.submit();"

    formname is the name of the form
    form name="test"
    Last edited by HTML; 08-22-2002 at 08:20 AM.

  5. #5
    MM2carmaker's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2002
    Posts
    4
    Are they any free programs you can get that do this for you in like 20 seconds? Ya know, those programs that claim to be idiot-proof and can make a form in 20 sec. It just takes a long time to make a form from scratch.

  6. #6
    benzden's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2002
    Location
    San Antonio, Texas
    Posts
    652
    Yeah, but it takes a couple days to understand the programs that do it!


    The sooner one realizes that all the drudgery of coding has to be slogged through regardless of needful shortcuts, the sooner one will experience coding bliss, young grasshopper.

    (We've all been there and, unless we stop to write those codes ourselves, have all realized that, oftentimes, coding drudgery gives us time to think creativly about even more wonderful techniques to astound the world and feed our super egos.)

  7. #7
    MM2carmaker's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2002
    Posts
    4
    Young grasshopper will try his best.



Tags for this Thread