yangkai9999 Posted November 13, 2009 Share Posted November 13, 2009 Hello,I created a delete action by using PHP. It contents 3 PHP codes.first one is for to get ID for a record and store the ID into the name of getid, the method="POST"second code is to pick up whole record's informtion and display the information on screen to let user to confirm. ex. $chk=$_POST[getid];so far, the two code works fine.the third one perform delete action, I would like to get the value by using $chk=$_POST[getid]; But it seems doesn't work. How can I get the information from first step? Or how should I do?Thanks, Link to comment Share on other sites More sharing options...
justsomeguy Posted November 13, 2009 Share Posted November 13, 2009 How do you want the delete to work? Is there a link to click to delete something, or a checkbox in a form, or what do you have? Link to comment Share on other sites More sharing options...
yangkai9999 Posted November 13, 2009 Author Share Posted November 13, 2009 How do you want the delete to work? Is there a link to click to delete something, or a checkbox in a form, or what do you have?yes, there is a link to delete a record. Link to comment Share on other sites More sharing options...
justsomeguy Posted November 13, 2009 Share Posted November 13, 2009 For a link, you would pass the ID to delete in the link, e.g.:delete.php?id=10And on the delete page, you would find that in $_GET, not $_POST. The post method is only for forms, not links. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.