Oskars
Oskars

Reputation: 417

MAILTO just opening blank chrome page

My idea is that i let user fill in text-boxes, and then i want him to press send button, and that text would be sent to my e-mail. But every time, when i press the send button, opens a new, blank chrome page, no matter from which browser i work... Here is the part of the code, that operates with it. Hope u cann help to solve my issue.

<form action="MAILTO:[email protected]" method="post" enctype="text/plain">
                <table>
                  <tr>
                    <td><span class="tekstaievadei">Name:</span></td>
                    <td><input id="vards" type="text" name="name"></td>
                  </tr>
                  <tr>
                    <td><span class="tekstaievadei">Surname:</span></td>
                    <td><input type="text" name="surname" id="surname"></td>
                  </tr>
                  <tr>
                    <td><span class="tekstaievadei">Nr:</span></td>
                    <td><input type="text" name="nr" id="nr"></td>
                  </tr>
                </table>
                <input type="submit" value="Submit">
             </form>

Upvotes: 0

Views: 1022

Answers (1)

woz
woz

Reputation: 11004

You cannot pre-populate an email with the values of form fields. Using mailto simply opens a new email to the given email address. Send the email from the server side if you want full control.

Upvotes: 1

Related Questions