upload image in MySql Table
Hi there, I'm trying to upload an image from a html form into mysql table.
I the form have several input, so my jquery is:
- $("#spot_submit_review").click(function() {
- var vtitle = $('#title').val();
- var vlongitude =$('#longitude').val();
- var vlatitude = $('#latitude').val();
- var vemail = $('#email').val();
- var vstato =$('#stato').val();
- var vuser = $('#user').val();
- var vdescription =$('#summernote').code();
- var vphone=$('#phone').val();
- var vweb = $('#web').val();
- var vmobile =$('#mobile').val();
- var vimage =$('#imgage').val();
-
- $.post("assets/addspot.php", //Required URL of the page on server
- {// Data Sending With Request To Server
- title: vtitle,
- longitude :vlongitude,
- latitude :vlatitude,
- email:vemail,
- stato : vstato,
- user : vuser,
- phone:vphone,
- web : vweb,
- mobile : vmobile,
- image :vimage, <---- This is correct?
- description : vdescription
- },
- function (response, status)
I would like sent Image file to php