this part:
Originally posted by Bluemonkey
<?php
echo($FirstElement);
echo($SecondElement);
?>
is supposed to be in the destination file and not in the file which contain the form.
i mean, it can be there, but than it has to be the destination file also (destination is the action URL...)
if you want the PHP part will be in the form page a few conditions have to apply:
1. the form file have to have a PHP extension.
2. the action URL should be the same page, or even better: replace the url with: <?=$PHP_SELF ?> . that way you won't have to change the action url if you change the name of the file.
3. it will better if you will add in the php part:
if ($submit) {
echo($FirstElement);
echo($SecondElement);
}
if you use this, i have to five to submit button a name, in this case "submit" but you can choose whatever yoiu want.
Guy.