Jump to content

php refreshing page after deleting a sql entry


pouncer

Recommended Posts

[code]
<?php
if (isset($_POST['Submit_x'])) {
$message_id = $_POST['message_id'];
echo "the delete was clicked on messageid: " . $message_id;
//delete that message with $message_id - I can do this, no problem
//refresh the page so that the table will have 1 less entry - how do i refresh?
}
?>
[/code]
Link to comment
Share on other sites

thanks for the reply jes!
I'm getting some errors, i just did this to test

[code]
  <?php
  if (isset($_POST['Submit_x'])) {
$message_id = $_POST['message_id'];
header('Location: $PHP_SELF');
}
  ?>
[/code]

Warning: Cannot modify header information - headers already sent by (output started at c:\domains\interzurf.nl\wwwroot\socialnetwork\member\myprivatemessages.php:106) in c:\domains\interzurf.nl\wwwroot\socialnetwork\member\myprivatemessages.php on line 169
Link to comment
Share on other sites

Ok.

hmm the line 106 is

<td width="50%"><div align="right"><span class="style74"><a href="member.php">Member home</a> | <a href="myprofile.php">My profile</a> | <a href="jkj">My collections</a> | <a href="myprivatemessages.php">My private messages</a> &nbsp;&nbsp; </span></div></td>
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.