Help with th form submit button

Posted on 2004-10-21
Last Modified: 2010-04-06
Hi, Hope someone can help.

I am currently developing a website......I am having trouble with submitting the forms details to the requested email address.  This is an example of  code I am using:

<form name="form1" method="post" action="" enctype="text/plain">
<td width="237"><font size="2" face="Arial">Enter First Name:</font></td>
<td width="322"><font face="Arial">
<input type="text" name="first name">
<input name="submit" type="submit"  value="Send">
 <input type="reset" name="Submit2" value="Erase">

Why is this code not working properly.

When I click submit....I get a message box saying form is being submitted using email.  Submitting this form will reveal your email address to recepient and another message box when I click on the previous message box saying ' A program is trying to automatically send email on your behalf. Do you want to allow this'.

Is there a way of getting around not showing these message boxes.........or is there a better way I can send the information on the form.

Hope someone can help Thanks
Question by:dthomas31uk
    LVL 53

    Accepted Solution

    Those are normal security warning intended to let the user know what is going on because they expose themselves when they submit information that way.  The mailto:protocaol, is about the worse way in the world to do forms submission.  The right way to do handle forms is with server side scripts that process the form.  If you do not have server side scriping that you can access then mailto is an anternative, but the security warnings are part of it and we should all be glad they are there.


    Author Comment

    Got you so when I get a web host sorted out for the website.  How do I sort out server side scripting????
    LVL 53

    Expert Comment

    Many host with server side scripting support, have a lot of standard scripting for forms handling they may do what you need or is easily customized.  Then you just change the action on the form to th name of the server side script and then it can put the information in a database, or email it to you, or both.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: MongoDB Object-Document Mapper for NodeJS

    NodeJS (JavaScript on the server) is awesome, but some developers get confused about NoSQL when it comes to working in Node with MongoDB (NoSQL database). Do you need a better explanation of how to use Node.js with MongoDB? The most popular choice is the Mongoose library.

    Suggested Solutions

    Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
    There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

    856 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now