hey
in order to avoid multiple posts problem (F5), you should do something like this:
<?php
//create sql string for data insertion
//$conn is a connection identifier
$sql = "insert into blablabla values (bla, bla)";
if(mysql_query($sql,$conn))
{
header("location: anything.php");
exit;
}
?>
the reason why your code is "looping" is the fact that the 'if' statement is always true, meaning it will redirect forever....
you could provide some more information on how and where the redirect should go....
😃 😃