
October 29th, 1999, 04:26 PM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
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...
|