• 0

Problem With Mailto Form


Question

I have a problem with some HTML code & I was hoping someone could help me out.

I have the following form code on my website:

<form enctype="text/plain" action="mailto:myemailaddress@mydomain.com" method="get">

<input name="Subject" type="hidden" value="I Agree To The HR Policies" />

<input name="HRSubmitButton" type="submit" value="I Agree To The HR Policies" />

</form>

Basically it's just a button that says "I Agree To The HR Policies". When the user clicks on the button it opens an Outlook message which would be sent to myself. The problem is that the e-mail subject is changed to "I+Agree+To+The+HR+Policies" instead of having the spaces. I can't seem to figure out how to remove the "+" signs & have the text displayed properly in the e-mail subject.

Any ideas/suggestions?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
&lt;input type="button" onClick="window.location='mailto:myemailaddress@mydomain.com?subject=I+Agree+To+The+HR+Policies'" value="I Agree To The HR Policies" /&gt;

Link to comment
Share on other sites

This topic is now closed to further replies.