Welcome Guest! To access all forums & features, please register an account or sign-in. → Why register?



Problem With Mailto Form


4 replies to this topic - - - - -

#1 MRM316

    WWE Fan

  • 83 posts
  • Joined: 05-November 05

Posted 15 May 2012 - 21:05

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?


#2 DPyro

    Neowinian Senior

  • 2,093 posts
  • Joined: 11-December 05
  • Location: Ontario,Canada

Posted 15 May 2012 - 21:10

Try using the html code for spaces - &nbsp;

#3 xendrome

    In God We Trust; All Others We Monitor

  • 5,900 posts
  • Joined: 05-December 01
  • OS: Windows 8 Pro x64

Posted 15 May 2012 - 21:10

The one above me, or

Maybe try putting it as <input name="Subject" type="hidden" value="I%20Agree%20To%20The%20HR%20Policies" />

?

#4 -Alex-

    Noob Hunter

  • 2,760 posts
  • Joined: 08-August 06
  • Location: Oslo, Norway

Posted 15 May 2012 - 21:15

<input type="button" onClick="window.location='mailto:myemailaddress@mydomain.com?subject=I+Agree+To+The+HR+Policies'" value="I Agree To The HR Policies" />


#5 OP MRM316

    WWE Fan

  • 83 posts
  • Joined: 05-November 05

Posted 15 May 2012 - 21:39

View PostDPyro, on 15 May 2012 - 21:10, said:

Try using the html code for spaces - &nbsp;
That worked. Thanks!