I have a php page (called main.php) in which there is a link (using tag <a...>) in order for users to delete an item in table.
I want it operate as follow:
First, this page will be tranfer a variable call 'action' with the value 'view' in order for users to view all records in a database.
(In this view there is a link, said above, for each record)
When user click on that link, a message window will appear requiring user confirmation. If they click yes, I want to tranfer a variable called 'action' with the value 'delete' to this right page (main.php), because codes for handling view and delete action are both in the main.php file.
So what i have to do in this situation, php or javascript, or how they could interact with each other.
8O