留言板?
我想做一个留言板,写了下面两个程序:
sendfdbk.php
<?
include("include/total.inc");
$title = "Feedback";
include("include/header.inc");
if ( $name == "" )
{
echo "How come you are anonymous?";
}
elseif ($name == "Your name")
{
echo "Hello ? <B>Your name</B> is supposed to be replaced with
your actual name!</B>";
}
else
{
echo "Hello, $name.
<BR>
Thank you for your feedback. It is greatly appreciated.
<BR>
$MyEmailLink
";
mail($MyEmail, "Feedback.","
Name : $name
E-mail : $email
Comment : $comment
");
}
?>
form.php
<?
include("include/total.inc");
$title = "Feedback";
include("include/header.inc");
?>
<P>
<INPUT TYPE="text" NAME="name" value="Your name" SIZE="20" MAXLENGTH="30">
<INPUT TYPE="text" MAXLENGTH="40" WIDTH="20" value="Your Email" NAME="email">
<BR>
<TEXTAREA ROWS="7" COLS="40" NAME="comment">
Your feedback on my home page.
</TEXTAREA>
<BR>
<INPUT TYPE="submit" VALUE="Send Feedback!">
<FORM ACTION="sendfdbk.php" METHOD="POST">
</FORM>
我在运行form.php后,输入姓名,提交,可出不来运行sendfdbk.php的画面?