Thread: Submit query

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    7
    Rep Power
    0

    Submit query


    Hi.
    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?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    11
    Rep Power
    0
    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
  4. #3
  5. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,959
    Rep Power
    1014
    Hi,

    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?

IMN logo majestic logo threadwatch logo seochat tools logo