popup input to sql?
The reason is for a user to decline a job, when they click 'reject job' it will popup and ask for a reason.
The reason will be stored in mysql.
Last edited by adamck; 02-14-2011 at 05:50 AM.
Re:Popup input to SQL
Yo can use prompt function. From it you can take the input and then update the database accordingly
prompt("Please enter your name","Your name");
I can make the promp ok, and i can pull the variable using this tutorial
how do i send the variable to php/sql without refreshing the page?
This is the part im stuck with
User presses button - popup requests a comment and presses ok - comment is then entered into sql table - user is back where he started.
The only way to do it without submitting the page is with AJAX techniques. Otherwise, you'll have to submit the page to send the data to the server.
i am aware of this.
I was hoping for some code example of this i could then try or play with?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)