Reputation: 53
I found nice tutorial about jquery php file upload but my knowledge is`t that well because i dont know where put these samples of code... and what is xml file ?
i have 2 files :
1-named kontakt.php with body of the simple contact form body
<form action="contact.php" method="post" id="my-form" enctype="multipart/form-data">
2-file named contact.php to php scripts.
Im trying to do some basic operations with files with no effect. Can u write me some directions about these parts of the code because i dont recognize them wery well
Thanks
Upvotes: 0
Views: 29
Reputation: 187
Alright, let's do this:
The code you posted up top isn't the complete contact form HTML. Use the whole code from the tutorial.
<div id="container">
<form action="process.php" method="post" id="my-form" enctype="multipart/form-data">
<p>E-mail<br />
<input type="text" name="email" id="email" /></p>
<p>File<br />
<input type="file" name="upload" id="upload" /></p>
<p><input type="submit" value="Submit" /></p>
</form>
</div>
<div id="output"></div>
You might also want to check out this tutorial, I think it is a bit more clear:
http://www.w3schools.com/php/php_file_upload.asp
Upvotes: 1