Quello di seguito e' il form e come potrai notare la proprieta' form enctype c'e' poi ho sostituito l'altro comando che mi hai suggerito e ora mi da questo errore:
Warning: Wrong parameter count for is_uploaded_file() in D:\Inetpub\webs\soncinitraduzionicom\invia.php on line 10
Email inoltrata correttamente...
che devo fare?mi si stanno bruciando valangate di neuroni![]()
![]()
![]()
![]()
![]()
codice:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <script language="javascript"> function verifica(){ name=""; phone=""; email=""; request=""; spunta=""; if(document.TheForm.email.value==""){ email="Enter your e-mail\n"; document.TheForm.email.focus(); }else if(document.TheForm.email.value.lastIndexOf("@")==-1 || document.TheForm.email.value.lastIndexOf(".")==-1){ email="Insert valid e-mail\n"; document.TheForm.email.focus(); } if(document.TheForm.request.value==""){ request="Insert request\n"; document.TheForm.request.focus(); } if(document.TheForm.name.value==""){ name="Enter your name\n"; document.TheForm.name.focus(); } if(document.TheForm.phone.value==""){ phone="Insert phone\n"; document.TheForm.phone.focus(); } if(document.TheForm.spunta.checked==false){ spunta="Check for continue\n"; } error="ERROR MISSING DATA\n"; if((spunta!="")||(email!="")||(name!="")||(phone!="")||(request!="")){ alert(error+name+phone+email+request+spunta) return false; } } </script> </head> <html> <body> <td width="123"></td> </tr> <tr> <td height="114"></td> <td></td> </tr> </table> <table width="289" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="289" height="464" valign="top"> <form method="post" enctype="multipart/form-data" action="invia.php" name="TheForm" id="TheForm" onSubmit="return verifica();"> name and surname <input name="name" type="text" id="name"> phone <input name="phone" type="text" id="phone"> e-mail <input name="email" type="text" id="email"> request <textarea name="request" rows="3" id="request"></textarea> attachments <input type="file" name="file"> privacy <textarea name="privacy" id="privacy">testo sulla pryvacy</textarea> <input name="spunta" type="checkbox" id="spunta" value="tuodato"> I agree </p> <input type="submit" name="Submit" value="send"> </p> </form></td> </tr> </table> </body> </html>

Rispondi quotando