refresh on submit

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kindermaxiz@yahoo.com

    #1

    refresh on submit

    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
  • Michael Winter

    #2
    Re: refresh on submit

    On 21 Sep 2004 18:20:11 -0700, <kindermaxiz@ya hoo.com> wrote:

    [snip]
    [color=blue]
    > it's a php script[/color]

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

    [snip]

    Good luck,
    Mike

    --
    Michael Winter
    Replace ".invalid" with ".uk" to reply by e-mail.

    Comment

    Working...