I am working on a PHP script(feedback.php3) that'll take input from a user and send an e-mail to
both the site administrator and user by passing the variables to another php script(email.php3)
that actually calls the "mail" function.
Also I'd like the user to see a dynamic thank you page at the end of the submission.
For ex: Thank you $name
Problem :
With the wealth of info available on the net, I'd get the above thing to work by using some
thing like the following:
feedback.php3
<?
<FORM ACTION="email.php3" METHOD="POST">
Your name:<BR>
<INPUT TYPE="text" NAME="name" SIZE="20" MAXLENGTH="30">
<br>
Your email address:<BR>
<INPUT TYPE="text" NAME="email" SIZE="20" MAXLENGTH="30">
<P>
<INPUT TYPE="submit" VALUE="Submit!">
</FORM>
?>
email.php3
<?
PRINT "<CENTER>";
PRINT "Hello, $name.";
PRINT "<BR><BR>";
PRINT "Thank you for your interest.<BR><BR>";
PRINT "We will send information to $email,<br>";
PRINT "</CENTER>";
mail("$email", "Your request for information", "$name
Thank you for your interest in eternalhostS.com!");
mail("nr_bandi@hotmail.com",
"Visitor request for info.",
"$name requested for information.
The email address is $email.");
?>
But, if I would like to implement "email.php3" in frames how should I go about?
-i.e.,when the user clicks teh submit button I want the thank you page to appear in frames.
|Frame 1********|
|------|-----------|-
||*****|
||Thank You|
|Frame|$name*|
|2|***** |
||Frame 3 |
|***|******* |
Hope, I'd get my point across. I'd be glad if you could also CC me your reply to nr_bandi@hotmail.com
TIA,
-Bandi