Hi,
what about using a second get parameter, like
<a href="thescript.php?action=delete&id=$userid">Delete user</a>
In thescript.php:
$action = isset($_GET['action']) ? $_GET['action'] : 0;
$id = isset($_GET['id']) ? $_GET['id'] : 0;
if ($action == 'delete' && is_numeric($id) && $id>0) {
// delete the user
}
This example just uses $GET and has to be modified a little bit to support both $GET and $_POST depending on how the form looks like.
PHP is a server side language so you can't use PHP code on the client side.
Thomas