abubaker0000 Posted September 17, 2014 Share Posted September 17, 2014 haw can I make a commit script , when I click on button the commit inserted in the table and browsed immediately without refresh the page , like Facebook commits ? Quote Link to comment https://forums.phpfreaks.com/topic/291133-how-i-can-make-a-commit-script/ Share on other sites More sharing options...
CroNiX Posted September 17, 2014 Share Posted September 17, 2014 Only way to do that is with javascript using AJAX. Quote Link to comment https://forums.phpfreaks.com/topic/291133-how-i-can-make-a-commit-script/#findComment-1491434 Share on other sites More sharing options...
abubaker0000 Posted September 17, 2014 Author Share Posted September 17, 2014 yes , but how that Quote Link to comment https://forums.phpfreaks.com/topic/291133-how-i-can-make-a-commit-script/#findComment-1491437 Share on other sites More sharing options...
mac_gyver Posted September 18, 2014 Share Posted September 18, 2014 writing (building) a complete application requires that you have already mastered (learned and practiced) using the tools needed to build the application. unless you know how to produce a form for the browser and produce the .php code to take the submitted form data and insert it into a database table, you won't be able to do these things for your data. next, using ajax to submit a form, is an 'extra' feature, and in general, can be added to an existing working form by adding an event that calls a function that submits the data using an asynchronous http request and prevents the browser from submitting the form. the .php code that process the form data will be the same, regardless of using ajax or not. if you don't know how ajax works, you need to first learn and practice writing code that uses ajax to submit post data to a .php page. then, adding that functionality to a comment form will be the easy part. Quote Link to comment https://forums.phpfreaks.com/topic/291133-how-i-can-make-a-commit-script/#findComment-1491508 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.