no, that's not what i want.....
i want to reload the feedback page....
feedback.php?step=confirm
and the first fuction of the page is to check if the step is confirm, it it is "confirm" then, just load the word thank you....not loading the form on the feedback.php page...
here's the full source, help me,
<?
include("header.in");
include("connect.in");
?>
<?
if ($step=="confirm")
{
$r = "insert into guestbook(name,location,email,homepage,comment) values(\"$name\",\"$location\",\"$email\",\"$homepage\",\"$comment\")";
mysql_query($r, $db);
print "<h1>THANK YOU!</H1>";
print "<font color=\"red\" size=\"9\"> $name </font>";
}
?>
<center>
<table cellpadding="0" cellspacing="1" border="0" width="85%">
<tr><td align="top"><p align=justify>
<BR>
<font color="#d5d5d5" size="3">
<FORM action="feedback.php?step=confirm" METHOD="post">
Your Name: <INPUT TYPE="text" name="name"><BR>
Location: <input type="text" name="location"><BR>
Email: <input type="text" name="email"><BR>
Homepage : <input type="text" name="homepage"><BR>
Comment: <input type="textarea" name="comment"><BR>
<input type="submit" value="post">
</form>
<?
$data=mysql_query("select name, location, email, homepage, comment from guestbook order by id desc", $db);
while ($text=mysql_fetch_row($data))
{
print ("<hr>");
print ("<b>Name:</b><t> " . $text[0] . '<BR>');
print ("<b>Location:</b> " . $text[1] . '<BR>');
print ("<b>Email: </b><a href=\"mailto:$text[2]\">$text[2]</a><br>");
print ("<b>Homepage: </b><a href=\"$text[3]\">$text[3]</a><br>");
print ("<b>Comment: </b> " . $text[4] . '<BR>');
print ("<BR>");
}
?>
</p>
</td></tr></table>
<?
include("footer.in");
?>