October 29th, 1999, 03:25 AM
I'm totally new in this stuff, i just started with perl. I know how to set up some basic script and stuff, but that's it. I'm from the netherlands, so don't blame me on my bad english.
I want to make an html form that sends an email back depending on the age.
Example: for age 8-14 send email 1
for age 15-23 send email 2
Is there a script somewhere what is able to do such things, or is there anybody who can help me?
October 29th, 1999, 05:26 PM
Working with forms in PHP - each form element has a name, and that name corresponds to a variable in PHP3.
So write your form, including a spot for AGE, and set the form action to be a PHP script.
In the PHP script, do a simple if construct:
if (($age > 7) AND ($age < 15))
mail($address, $subject, $body1);
elseif (($age > 14) AND ($age < 24))
mail ($address, $subject, $body2);
And you can continue on like that...