CoStar
asked on
How do I submit my HTML form by e-mail?
I created a simple form on a webpage, where I ask for visitors to enter their e-mail address and click 'Submit' if they want to be notified of an event.
When I test the form, nothing happens, apart from the re-direct to a second webpage.
This is the code I use:
<form action="info@invoiceit.com " method=post enctype="text/plain">
<input type="hidden" name=tx1>
<input type="text" name="tx2" size="27" value="enter your e-mail address"><a href="thanksforwantingclou d.htm">
<input type=submit value="Send it" name="B1"><input type="reset" value="Reset" name="B2">
</form>
What is missing to send the content of that text box to my e-mail address?
Hope you can help - thank you.
When I test the form, nothing happens, apart from the re-direct to a second webpage.
This is the code I use:
<form action="info@invoiceit.com
<input type="hidden" name=tx1>
<input type="text" name="tx2" size="27" value="enter your e-mail address"><a href="thanksforwantingclou
<input type=submit value="Send it" name="B1"><input type="reset" value="Reset" name="B2">
</form>
What is missing to send the content of that text box to my e-mail address?
Hope you can help - thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You removed the 'mailto' part. It will not work without that. And this <a href="thanksforwantingclou d.htm"> does absolutely nothing. Remove it.
ASKER
yes, I omitted that and now it works. Thank you for pointing it out.
Just one little thing left:
I use value="Notify Cloud release" as the subject, but on the e-mail it appears as
Notify+Cloud+release
Do you know how the + signs can be changed to spaces?
Just one little thing left:
I use value="Notify Cloud release" as the subject, but on the e-mail it appears as
Notify+Cloud+release
Do you know how the + signs can be changed to spaces?
They can't as far as I know. They are required because of the way the email program is called from the web browser.
ASKER
I figured it out:
value=Notify cloud&nb sp;release
Thank you for all your help. Points are awarded
value=Notify cloud&nb
Thank you for all your help. Points are awarded
Thanks, glad to help.
ASKER
Open in new window
Unfortunately, no mail arrives.
I can't see where I go wrong. It seems so simple, yet so elusive.