how to insert data into database by using onchange event .
hiiiiii@ 0 Junior Poster in Training
Recommended Answers
Jump to PostThis is probably Ajax. Look it up - come back with a specific question and examples of what you've tried.
Jump to PostWe need to see the form and your SQL table
Jump to Postquantity (id,value)
Sorry, makes no sense to me.
cart id,product id,quantityid,total
OK.
Do you want to use jQuery or plain javascript Ajax?
Jump to PostYes, I understand that. What I don't know is whether you want to use jQuery or plain javascript to handle the ajax call.
Jump to PostIn that case . maybe here
http://blogs.digitss.com/javascript/simple-plain-ajax-without-any-javascript-library/
I can't see the quantity texbox in your code. Did you forget to include it? If so, you're probably looking to do something like this...
<input name="food_qty[34]" value="0" type="number" min="0" />
Where the array index in …
All 17 Replies

diafol
sftranna 0 Newbie Poster
jovstudios -3 Junior Poster in Training
hiiiiii@ 0 Junior Poster in Training
hiiiiii@ 0 Junior Poster in Training

diafol
hiiiiii@ 0 Junior Poster in Training
hiiiiii@ 0 Junior Poster in Training

diafol
hiiiiii@ 0 Junior Poster in Training

diafol
hiiiiii@ 0 Junior Poster in Training

diafol
hiiiiii@ 0 Junior Poster in Training

diafol
hiiiiii@ 0 Junior Poster in Training

diafol
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.