Ok ... I have a php script that inputs names into a databse. if it's successful in doing so i would like to redirect user to the main page.
here's what i have so far. I have it display a generic message like "Successful" but i would like to return the user to the main page. obviously that last line didn't work and the page goes nowhere.
<?
@ $db = mysql_connect("localhost", "ki3_list", "!list!");
if (!$db)
{
echo "Error: Could not connect to database!";
exit;
}
mysql_select_db("ki3_list");
$query = "insert into list values
('$email')";
$result = mysql_query($query);
if($result)
echo "<meta HTTP-EQUIV='REFRESH' content='0'; url='index.html'>";
?>
here's what i have so far. I have it display a generic message like "Successful" but i would like to return the user to the main page. obviously that last line didn't work and the page goes nowhere.
<?
@ $db = mysql_connect("localhost", "ki3_list", "!list!");
if (!$db)
{
echo "Error: Could not connect to database!";
exit;
}
mysql_select_db("ki3_list");
$query = "insert into list values
('$email')";
$result = mysql_query($query);
if($result)
echo "<meta HTTP-EQUIV='REFRESH' content='0'; url='index.html'>";
?>
