I have a php script with a form that insert data in a mysql db and
when I click on submit I would like the page to refresh after the
insertion, how can I do that? it's a php script that display data from
a mysql db, and the submit button modify the content of the page yet I
need to manually refresh to see the result of my insertion.
it kinda looks like this:
echo "<form method=\"post\" action=$php_sel f>";
echo "<br>$dispayed_ colname:<BR><IN PUT TYPE=\"TEXT\" NAME=\"hey\"
SIZE=\"40\">";
echo "<p><input type=\"submit\" name=\"submit_t he_values\"
value=\"$submit \">
</form>";
if($submit_the_ values){
$sql=mysql_quer y("INSERT INTO $tabname($cols_ to_insert)". "VALUES
($hey)");
//I would like to refresh $php_self here, please tell me if you know
:)
}
thanx in advance
Pat
when I click on submit I would like the page to refresh after the
insertion, how can I do that? it's a php script that display data from
a mysql db, and the submit button modify the content of the page yet I
need to manually refresh to see the result of my insertion.
it kinda looks like this:
echo "<form method=\"post\" action=$php_sel f>";
echo "<br>$dispayed_ colname:<BR><IN PUT TYPE=\"TEXT\" NAME=\"hey\"
SIZE=\"40\">";
echo "<p><input type=\"submit\" name=\"submit_t he_values\"
value=\"$submit \">
</form>";
if($submit_the_ values){
$sql=mysql_quer y("INSERT INTO $tabname($cols_ to_insert)". "VALUES
($hey)");
//I would like to refresh $php_self here, please tell me if you know
:)
}
thanx in advance
Pat
Comment