November 30th, 2012, 02:16 AM
I was wondering if there is a way of submitting a from, but when you click on it to send, it will save a number of times to the database according to the number that was entered by a user?
November 30th, 2012, 03:51 AM
Here is an answer i found, i hope it helps you:
In order to submit a form, collect the results from database and present then to the user without page refresh, redirect or reloading, you need to:
1. Use Ajax to Post the data from your form to a php file
2. That file in background will query the database and obtain the results for the data that he as received
3. With the query result, you will need to inject it inside an html element in your page that is ready to present the results to the user.
4. At last, you need to set some controlling stuff to let Styles and document workflow run smoothly
November 30th, 2012, 06:01 AM
the last part of the question I don't understand. What do you mean by "a number of times according to the number that was entered by a user"?
What number do you want to save?