2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by Hummdis
0

Your 'update' link needs to be it's own form. You have 'form1', so make this 'refreshForm' or the like. Once you've create the form, the form action needs to be something like:

action="update.php?update=true"

That is, if the file is named 'update.php'...use whatever file name you've given.

Then, you'll need to add a section to the top section of PHP code that actually performs the update that you need if the $_GET option is 'true', such as:

if ($_GET['update'] == 'true') {

    $newname    = $_POST['name'];
    $newemail   = $_POST['email'];
    $newsubject = mysql_real_escape_string($_POST['subject']);


    // Do your MySQL stuff here based on what you want changed and the $_POST
    // vars that you've created.
}

// Continue with the rest of the normal code.
?>

Make sense?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.