By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,341 Members | 1,693 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,341 IT Pros & Developers. It's quick & easy.

refresh on submit

P: n/a
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_self>";
echo "<br>$dispayed_colname:<BR><INPUT TYPE=\"TEXT\" NAME=\"hey\"

echo "<p><input type=\"submit\" name=\"submit_the_values\"

$sql=mysql_query("INSERT INTO $tabname($cols_to_insert)". "VALUES

//I would like to refresh $php_self here, please tell me if you know


thanx in advance

Jul 23 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
On 21 Sep 2004 18:20:11 -0700, <ki*********> wrote:

it's a php script

Then it would be best to ask in a PHP group. Head over to comp.lang.php.


Good luck,

Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.