Hi,
There is a 'delete' link in home.php page, when it is clicked a row in the database is deleted. How do I write the code for this. I am using this line of code
[HTML]<a href='delete.ph p?id=1'>Delete</a>[/HTML] ,
then when link is clicked, it is directed to delete.php page. At the last I have used this line of code to redirect back to home.php page
[HTML]echo '<META HTTP-EQUIV="Refresh" Content="0; URL=home.php">' ;
exit;[/HTML]
But here the problem is when I click the link, the delete.php page is entered and a blank page appears and again return to home.php page. How can I code in such a way that, when the delete link is clicked it should not redirect to delete.php page but stay in the home.php page itself and perform the actions in delete.php page.
please help me to solve this problem
With regards
There is a 'delete' link in home.php page, when it is clicked a row in the database is deleted. How do I write the code for this. I am using this line of code
[HTML]<a href='delete.ph p?id=1'>Delete</a>[/HTML] ,
then when link is clicked, it is directed to delete.php page. At the last I have used this line of code to redirect back to home.php page
[HTML]echo '<META HTTP-EQUIV="Refresh" Content="0; URL=home.php">' ;
exit;[/HTML]
But here the problem is when I click the link, the delete.php page is entered and a blank page appears and again return to home.php page. How can I code in such a way that, when the delete link is clicked it should not redirect to delete.php page but stay in the home.php page itself and perform the actions in delete.php page.
please help me to solve this problem
With regards
Comment