Problem with XHTML/CSS Web Form

Discussion in 'HTML & Website Design' started by Masterful, Nov 3, 2007.

  1. #1
    Hi, guys,

    As you are about to realize, I know nothing whatsoever about web construction. Please bear with me, therefore, as I try to explain my problem, for which I would appreciate some help.

    I have added a simple form to one of my web pages. The purpose of the form is to collect recommendations for a survey I am conducting. When people fill in the fields and click "Send", the information they provide is supposed to be e-mailed to me. The form looks fine and validates under W3C regulations. The problem is, when I test the form using Firefox, an e-mail window opens instead of the information being sent directly to my e-mail address. And when I test the form using IE, an Internet Connection Wizard opens. What's the problem?

    Another quick question . . .

    After people click "Send", I'm assuming that, with the current configuration, there will be no confirmation message that the message has been sent. How can I arrange for the user to be directed to a confirmation page?

    Here's the markup of my form:


    <form action="mailto:my_email_address.com" method="post" enctype="text/plain">

    <fieldset>

    <h4>Name of company:</h4>

    <br/>

    <input type="text" name="company_name" value="" size="30"/>

    <br/><br/>

    <h4>Company's web address:</h4>

    <br/>

    <input type="text" name="company_address" value="" size="30"/>

    <br/><br/>

    <h4>How many times have you used this company?</h4>

    <br/>

    <input type="text" name="how_many_times_used" value="" size="10"/>

    <br/><br/>

    <h4>Please provide a comment as to why you have recommended this company.</h4>

    <br/>

    <textarea name="comment" rows="3" cols="53"></textarea>

    <br/><br/>

    <input type="submit" value="Send"/>

    <input type="reset" value="Reset"/>

    </fieldset>

    </form>
     
    Masterful, Nov 3, 2007 IP
  2. Masterful

    Masterful Well-Known Member

    Messages:
    1,653
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    140
    #2
    Anyone out there with a bit of advice?

    How do you guys build your own web forms?
     
    Masterful, Nov 4, 2007 IP
  3. jBud

    jBud Peon

    Messages:
    387
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you will need some sort of a script to mail the message.
    look around for "form mail scripts", also depending on you host, something like this might already be available to you within your hosting account.
     
    jBud, Nov 4, 2007 IP
  4. d4v1d

    d4v1d Peon

    Messages:
    5
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    mailto:my_email_address.com <=== this little bit of coding is one of your problems, that's why your email app keeps opening. Unfortunately I only know how to do a form mailer with php.
     
    d4v1d, Nov 4, 2007 IP
  5. Masterful

    Masterful Well-Known Member

    Messages:
    1,653
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    140
    #5
    Thanks for your help, guys. My problem is now resolved. I dispensed with that silly code and used a cool free PHP script that I found on the web. Check it out at BellOnline.co.uk.
     
    Masterful, Nov 4, 2007 IP