jpfred Posted April 4, 2007 Share Posted April 4, 2007 I have designed a form that gathers information about the user and when the SUBMIT button is pressed I would like to execute a PHP function in the same .PHP document. How can I call a PHP function within the same document when the submit button is pressed? Link to comment https://forums.phpfreaks.com/topic/45535-calling-a-php-function-from-the-submit-button/ Share on other sites More sharing options...
jitesh Posted April 4, 2007 Share Posted April 4, 2007 Possible through AJAX Link to comment https://forums.phpfreaks.com/topic/45535-calling-a-php-function-from-the-submit-button/#findComment-221053 Share on other sites More sharing options...
DeathStar Posted April 4, 2007 Share Posted April 4, 2007 <form action='script.php' onsubmit='verify()'> Link to comment https://forums.phpfreaks.com/topic/45535-calling-a-php-function-from-the-submit-button/#findComment-221054 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.