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]
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
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>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.