Welcome! Log In Create A New Profile

Advanced

Calling a function with a button

Posted by Mphixifiy 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Calling a function with a button
October 10, 2011 11:51PM
Hello Mac & fellow Students. I have a function called:

delete(){
mysql_query("Delete From user Where user_id = '$user_id' "winking smiley;
}
<a href='delete()'><input type='submit' name='del_account' value='Yes'></a>sad smiley



calling the function. with the yes link just fails. Is it possible with PHP? Many forums have failed to answer positively. They only recommend Javascript. Please help.
avatar
Mac
Re: Calling a function with a button
October 11, 2011 06:58AM
For goodness sake...... use the formatted code button......
Sorry, only registered users may post in this forum.

Click here to login