By now I know to upload file form is using ENCTYPE="multipart/form-data. But when we want to transfer form datat to mysql via php file what should be the enctpe=""?
<form action="process.php" method="POST" name="contactform" onSubmit="return ValidateForm(this); ENCTYPE="multipart/form-data">
Can we use ENCTYPE="multipart/form-data" if not what should i use???
Please answer me
Thanks
You don't need to fill in a form enctype when you aren't using a file upload. The default value is: "application/x-www-form-urlencoded". (when enctype not provided)
Conclusion: leave empty or use "multipart/form-data" when you need to upload a file.