Login | Register | FAQ
Anonymous

need html upload button

+ Post a reply

4 posts Page 1 of 1


need html upload button

by niv » Thu Dec 12, 2013 9:10 am

hey guys!
i create a download's website and i need a upload button
i need the code on html please so dont start to give me php/asp scripts.
javascript scripts allowed.
User avatar

niv

  • Posts: 10
  • Joined: Fri Oct 18, 2013 1:11 pm

Re: need html upload button

by XainPro » Thu Dec 12, 2013 12:44 pm

the HTML of uploading a file would be like below

Code: Select all
<html>
<body>

<form action="upload_file.php" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file"><br>
<input type="submit" name="submit" value="Submit">
</form>

</body>
</html>


but you can not upload a file without using php/asp.
javascript is for client side so by using only javascript and html you can not upload a file :)
User avatar

XainPro

  • Posts: 3933
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: need html upload button

by niv » Fri Dec 13, 2013 7:02 pm

XainPro wrote:the HTML of uploading a file would be like below

Code: Select all
<html>
<body>

<form action="upload_file.php" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file"><br>
<input type="submit" name="submit" value="Submit">
</form>

</body>
</html>


but you can not upload a file without using php/asp.
javascript is for client side so by using only javascript and html you can not upload a file :)


no php!!!
User avatar

niv

  • Posts: 10
  • Joined: Fri Oct 18, 2013 1:11 pm

Re: need html upload button

by XainPro » Sat Dec 14, 2013 11:59 am

then use asp or jsp or any other language if not then no one in this world can upload it :)
User avatar

XainPro

  • Posts: 3933
  • Joined: Fri Feb 17, 2012 8:10 pm


+ Post a reply

Page 1 of 1