Sunamena Posted November 15, 2015 Share Posted November 15, 2015 I am not sure wether to post this at Javascript, PHP or HTML, but i want to create a simple form but it does not work at all.Quite simple what one needs to do is.Name: (box)E-mail adress: (box) (REQUIRED) Specify the issue(BOX)Option one Option two ... Option six (/BOX)Note: They can only select one. Message: (Box) SEND (button) When they click on send the information is send to an e-mail adress. Afterwards, i want to give an: "E-mail send succesfull." message. You get the idea. How can I do this? I tried many things, but failed. I am gratefull and already thank you in advance for the reply =D 1 Link to comment Share on other sites More sharing options...
Ingolme Posted November 15, 2015 Share Posted November 15, 2015 What does your code look like? I can't figure out why it's not working without knowing what you tried to do. Link to comment Share on other sites More sharing options...
Sunamena Posted November 15, 2015 Author Share Posted November 15, 2015 (edited) This is what the code currently looks like, i do not yet know how to give a message that says that it is succesfull toughHere goes: <h1>Contact!</h1> <p> <form method="post" action="mailto:support@nimblefeather.com" enctype="text/plain"> <p>Name: <input type="text" name="name" > </p> <label>* E-mailadres: <input type="email" name="e-mailadres" required placeholder="Required."> </label> <p><br>Specify the issue:<br> <select name="locatie" size="6"> <option value="Bug-Report" selected> Bug Report </option> <option value="Volunteer"> I want to add my comic here </option> <option value="Report-inapropriate-material"> Report inapropriate material </option> <option value="Copyright-inquiry"> Copyright inquiry </option> <option value="Advise"> Advise </option> <option value="Other"> Other </option> </select> </p> <br><br> <p>Message: <br> <textarea name="opm" rows="4" cols="40"> </textarea> </p> <p> <input type="reset" value="reset" > <input type="submit" value="verzenden" > </p> </form> </p> Edited November 15, 2015 by Sunamena 1 Link to comment Share on other sites More sharing options...
Ingolme Posted November 15, 2015 Share Posted November 15, 2015 You can have an onsubmit event in Javascript attached to the form. When the form submits you can add a message to the page. This is a mailto form, though, so Javascript can't really know if and when the user actually sent the e-mail from their mail client. Link to comment Share on other sites More sharing options...
typomaniac Posted November 25, 2015 Share Posted November 25, 2015 Is it possible for you to use php or perl to process your form? You could have immediate validation with javascript backed up with a server-side validation(more reliable and hack-proof plus you can "cleanse" the input before it hits the air). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now