maybe the problem is on jquery..
var myData = {
video: $("input[name='video[]']:checked").serialize(),
sinopse: $("#sinopse").val(),
dia: $("#dia").val(),
quem: $("#quem").val()
};
jQuery.ajax({
type: "POST", // HTTP method POST or GET
url: "response.php", //Where to make Ajax calls
dataType:"text", // Data type, HTML, json etc.
data:myData, //Form variables
success:function(response){
$("#responds").append(response);
$(".video").val(''); //empty text field on successful
$("#sinopse").val('');
$("#dia").val('');
$("#quem").val('');
$("#FormSubmit").show(); //show submit button
$("#LoadingImage").hide(); //hide loading image
},
all the others variables is saved on database, less the "video" >(
Aucun commentaire:
Enregistrer un commentaire