>When a user clicks upon a delete link that deletes a record from a 
>database, I would like to be able to give them the option to OK or Cancel 
>this action.
>I have tried coding the browsers built in confirm box (I can bring up 
>this) but am unable to combine it with php or a combination of php and a 
>javascript funtion

I've done something similar.  Here is the code that I used:

echo "<a href=\"web_clients.php?type=delete&idClient=$idClient\" 
onclick=\"return confirm('Are you sure that you want to delete this 


PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to