jeudi 11 août 2016

how do I get ride of the "=" sign when submitting an html form?

I'm trying to make a really simple html form so that people who want to send an email can type the email on-site and send it after pressing "send". I used a form to do so, but the form automatically adds an "=" sign in the body of the email.

html:

<form action="MAILTO:someone@example.com" method="post" enctype="text/plain">
                    Name:
                    <br>
                    <input type="text" name="name" value="your name">
                    <br> E-mail:
                    <br>
                    <input type="text" name="mail" value="your email">
                    <br> Comment:
                    <br>
                    <input type="text" name="comment" value="your comment"  size="50">
                    <br>
                    <br>
                    <input type="submit" value="Send">
                    <input type="reset" value="Reset">
                </form>

The result is this, in the body of the email:

name=your name
mail=your email
comment=your comment

How to I remove the "="? or change it so that it only displays what the user entered ("your name") instead of having a "name=" ("name=your name")?

Thanks

Aucun commentaire:

Enregistrer un commentaire