calling php from inside


if anyone can help me of the following php & javascripts:

purposes:

(1) upon click on the "Clear " button, the selected item in the list of product chosen will be cleared, and the user will start from begining. This is a shopping cart program. But when I run the code it deletes every item I choose, without pressing "Clear " button, which should not be done. How this del_user_data() php scripts run without onclick "clear " button The formReset() method will refresh the screen.

(2) calling php script from inside a








(3) The del_user_data() is php function, which deletes the selected record from a temporary text file:


(4) The formReset() is java script method, which refresh the screens of that frame part:


function formReset(){
var ans = confirm("Are you sure to clear all");
if ( ans == 1 ){
parent.frames( "down" ).document.location.reload(true);
}
}



Many
Posted On: Wednesday 24th of October 2012 12:32:58 AM Total Views:  298
View Complete with Replies

RELATED TOPICS OF PHP PROGRAMMING LANGUAGE