English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
1

I need a way of getting my form to insert its data into an email template. Any ideas?

2006-06-12 15:46:44 · 4 answers · asked by clevens 2 in Computers & Internet Programming & Design

I've created a form located at http://www.aavg.org/bnbform_assigning.html and I need it to take all the fields of data and enter them into a template of an email and send it to the email address entered in the form. In other words, can I configure this form to collect data and enter it into an email template? This is probably PHP related, and I'm not very good with that. Could somebody give me a script, please?

2006-06-12 15:51:49 · update #1

4 answers

Hi what you need is a Dynamic Scripting language either PHP / ASP / RUBY / JSP / CGI / etc. It will be quite easy on PHP to do.

What you need to do is make a form.. You can test this out here:
I will make a quick script to help you out at first

=================================
=================================








// Check if the variable is valid and exists
$name = isset($_POST['name']) ? $_POST['name'] : 'empty';
?>

The name I entered is:


=================================
=================================

Save the above as test.php or something and run it online. Once your done, you will see one input with Full Name and a text box. And when you enter your name it will tell you the name I entered is : Mohamed Mansour.

That will help you get started on how to make your form... Now to mail users you can look at the php mail() function:
http://www.php.net/mail

Remember you have to have a smtp server on windows machine to be running it. If your using your webhost, it is most likely installed.

I hope I helped take care.

2006-06-12 17:56:33 · answer #1 · answered by ? 6 · 1 0

go for JSP/Servlets
This is secure and platform independent.
That is most important for internet usage
cheers
vijay

2006-06-22 04:17:40 · answer #2 · answered by vijay 2 · 0 0

good innovation!

try phishing the next time.

2006-06-12 22:57:54 · answer #3 · answered by ungkog 4 · 0 1

Use lubrication!

2006-06-23 17:23:49 · answer #4 · answered by northwest.poet 4 · 0 1

fedest.com, questions and answers