Answer Posted / kapil dhiman
<?php
move_uploaded_file($_FILES['file']['tmp_name'],"images/".$_FILES['file']['name']);
?>
<form action="" method="post" enctype="multipart/form-data">
File<input type="file" name="file" /><input type="submit" name="sub" value="Upload" />
</form>
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How to write a program to make chess?
What is regex in html?
How to open standard output as a file handle?
Explain how to submit form without a submit button.
What is the difference between require and include in php?
Why php is sometimes called as embedded scripting language?
Is a number php?
How to know user has read the email-php?
Name some of the popular frameworks in php.
How to calculate the difference between two dates using php?
What is form action php?
Can I learn laravel without php?
How does php session work?
What is cookie and session in php?
How come the code works, but doesn’t for two-dimensional array of mine?