Hello!
I have a script which displays people associated with an event. Right now I can delete them from the event by clicking a DELETE link just fine, which opens a new window and confirms the deletion.
<a href="delete_attendee.php?a_id='.$row['a_id'].'" target="_new"> Delete</a>
and the code to delete the attendee on the confirm page:
$query="delete from i_attendees where a_id='".$_GET['a_id']."'";
$result=mssql_query($query);
mssql_close($connect);
if ($result)
{echo 'Attendee Deleted';}
else
{echo "Could not delete";}
?>
When I close the confirmation window the record is still displayed and requires a refresh to show that it has been deleted. Is there a better, more efficient way I can be doing this, where I can click a delete link and it all stays on one page and refreshes automatically?