[jQuery] Re: [jquery.form.js v2.18] file upload field and standard fields

2009-01-30 Thread phicarre

I replace my code by this one:
?
echo VAR DUMP:p /;
  var_dump($_POST);
?

and the result is:

VAR DUMP:p /array(3) {
  [nom]=
  string(0) 
  [prenom]=
  string(0) 
  [MAX_FILE_SIZE]=
  string(6) 10
}
File: 2.gif (6160 bytes)VAR DUMP:p /array(3) {
  [nom]=
  string(0) 
  [prenom]=
  string(0) 
  [MAX_FILE_SIZE]=
  string(6) 10
}
File: 2.gif (6160 bytes)VAR DUMP:p /array(3) {
  [nom]=
  string(0) 
  [prenom]=
  string(0) 
  [MAX_FILE_SIZE]=
  string(6) 10
}
File: 2.gif (6160 bytes)

On 30 jan, 01:34, l...@onsight.ie wrote:
 Might just be a typo, but just in case - it should be $_POST



  What does the error field say? And I'm pretty sure that MAX_FILE_SIZE
  must come immediately before your file input element.

  Also, are you sure the file is within your upload limit?

  On Thu, Jan 29, 2009 at 1:01 PM,phicarregam...@bluewin.ch wrote:

  jquery.form.js v2.18

  I have a form with a lot of fields and one upload file field:

  form action='' id='form1' enctype='multipart/form-data' style='font-
  size:85%'
     input type=hidden name=MAX_FILE_SIZE value=10 /

     table 
         trtdNom: /tdtdinput type='text' size='30' id='nom'
  name='nom' //td/tr
         trtdPrénom: /tdtdinput type=text size=30
  id=prenom name=prenom //td/tr
         trtdPhoto: /tdtdinput type=file size=40
  id=photo name=photo //td/tr
     /table
  /form
  /div

  $('#form1').ajaxSubmit(
     {
         type: 'POST',
         url: 'create.php',
         beforeSubmit: showRequest ,
         success: function(msg) {},
         error: function(requete,iderror) {alert(iderror);}
     }
     );

  In create.php, the $_FILES is correct  (name,size,type,tmp name,error)
  BUT the $POST is empty !
  Why ?


[jQuery] Re: [jquery.form.js v2.18] file upload field and standard fields

2009-01-29 Thread brian

What does the error field say? And I'm pretty sure that MAX_FILE_SIZE
must come immediately before your file input element.

Also, are you sure the file is within your upload limit?

On Thu, Jan 29, 2009 at 1:01 PM, phicarre gam...@bluewin.ch wrote:

 jquery.form.js v2.18

 I have a form with a lot of fields and one upload file field:

 form action='' id='form1' enctype='multipart/form-data' style='font-
 size:85%'
input type=hidden name=MAX_FILE_SIZE value=10 /

table 
trtdNom: /tdtdinput type='text' size='30' id='nom'
 name='nom' //td/tr
trtdPrénom: /tdtdinput type=text size=30
 id=prenom name=prenom //td/tr
trtdPhoto: /tdtdinput type=file size=40
 id=photo name=photo //td/tr
/table
 /form
 /div

 $('#form1').ajaxSubmit(
{
type: 'POST',
url: 'create.php',
beforeSubmit: showRequest ,
success: function(msg) {},
error: function(requete,iderror) {alert(iderror);}
}
);

 In create.php, the $_FILES is correct  (name,size,type,tmp name,error)
 BUT the $POST is empty !
 Why ?


[jQuery] Re: [jquery.form.js v2.18] file upload field and standard fields

2009-01-29 Thread phicarre

- error field gives nothing
- i moved max_file_size just before but nothing
- i selected small images

the question is, with jquery and ajax, is it possible to have in the
same form text fields and files field !
with javascript the answer is yes but with this plugin ?


On 30 jan, 00:45, brian bally.z...@gmail.com wrote:
 What does the error field say? And I'm pretty sure that MAX_FILE_SIZE
 must come immediately before your file input element.

 Also, are you sure the file is within your upload limit?

 On Thu, Jan 29, 2009 at 1:01 PM, phicarre gam...@bluewin.ch wrote:

  jquery.form.js v2.18

  I have a form with a lot of fields and one upload file field:

  form action='' id='form1' enctype='multipart/form-data' style='font-
  size:85%'
     input type=hidden name=MAX_FILE_SIZE value=10 /

     table 
         trtdNom: /tdtdinput type='text' size='30' id='nom'
  name='nom' //td/tr
         trtdPrénom: /tdtdinput type=text size=30
  id=prenom name=prenom //td/tr
         trtdPhoto: /tdtdinput type=file size=40
  id=photo name=photo //td/tr
     /table
  /form
  /div

  $('#form1').ajaxSubmit(
     {
         type: 'POST',
         url: 'create.php',
         beforeSubmit: showRequest ,
         success: function(msg) {},
         error: function(requete,iderror) {alert(iderror);}
     }
     );

  In create.php, the $_FILES is correct  (name,size,type,tmp name,error)
  BUT the $POST is empty !
  Why ?


[jQuery] Re: [jquery.form.js v2.18] file upload field and standard fields

2009-01-29 Thread liam

Might just be a typo, but just in case - it should be $_POST




 What does the error field say? And I'm pretty sure that MAX_FILE_SIZE
 must come immediately before your file input element.

 Also, are you sure the file is within your upload limit?

 On Thu, Jan 29, 2009 at 1:01 PM, phicarre gam...@bluewin.ch wrote:

 jquery.form.js v2.18

 I have a form with a lot of fields and one upload file field:

 form action='' id='form1' enctype='multipart/form-data' style='font-
 size:85%'
input type=hidden name=MAX_FILE_SIZE value=10 /

table 
trtdNom: /tdtdinput type='text' size='30' id='nom'
 name='nom' //td/tr
trtdPrénom: /tdtdinput type=text size=30
 id=prenom name=prenom //td/tr
trtdPhoto: /tdtdinput type=file size=40
 id=photo name=photo //td/tr
/table
 /form
 /div

 $('#form1').ajaxSubmit(
{
type: 'POST',
url: 'create.php',
beforeSubmit: showRequest ,
success: function(msg) {},
error: function(requete,iderror) {alert(iderror);}
}
);

 In create.php, the $_FILES is correct  (name,size,type,tmp name,error)
 BUT the $POST is empty !
 Why ?