rxbanditboy1112 Posted December 10, 2007 Share Posted December 10, 2007 How would I do this? My plan is to verify that a certain email address doesn't exist in my database and will create a php function to verify that on the same page as the form. When I verify the other form elements using javascript, i will also check for the duplicate email address from the a database. So i suppose the question is how do i call a php function from within javascript? Now that i think about it, i believe i would need a separate page for the php checking code right? Quote Link to comment https://forums.phpfreaks.com/topic/80967-can-i-call-a-php-function-from-within-javascript/ Share on other sites More sharing options...
rajivgonsalves Posted December 10, 2007 Share Posted December 10, 2007 Yes you can do it through AJAX Quote Link to comment https://forums.phpfreaks.com/topic/80967-can-i-call-a-php-function-from-within-javascript/#findComment-410742 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.