Friday, July 31, 2009

What is the html code to allow users to ask a question in a text field and submit to my email account?

I'm working on a website and can't figure this out. I want the user to be able to ask a question in the text field provided and then when they submit the question, I want the question they asked in that text field to be sent to my personal email account..


Any help would be appreciated. The first one that throughly answers this question will get best answer and a cyber-high five!

What is the html code to allow users to ask a question in a text field and submit to my email account?
%26lt;form action="youremail@yahoo.com"%26gt;


%26lt;textarea%26gt;


message here


%26lt;/textarea%26gt;


%26lt;input type="submit" value="send"%26gt;


%26lt;/form%26gt;
Reply:While there is no real simple one step solution to your question, it can be completed if you have access to a cgi/perl/php script that can parse the data coming from the form submitted and send the data out through as an e-mail.





As you know, HTML forms can be used to collect data from questionnaires or surveys you put on the web and this data collected can be sent to you in the form of an e-mail provided that you have the necessary CGI/Perl/PHP script that will look through the data obtained and send it to you as an e-mail.





However, if you don't have such access to creating such a script or don't want to take the time or simply don't know how to programm, I suggest is to search for 'free remotely hosted' formmail (e.g. http://www.mailmyform.com/) so that you don't have to worry about the programming, just provide the fields necessary in your form so that when the user hits the 'submit' button, the data is processed by somewhere and the information is automatically sent to you in the form of an e-mail.


No comments:

Post a Comment