Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.8K
1 Posted Topic
<?php if(isset($_POST['upload-img'])) { $img=$_FILES['image']['name']; $img_loc=$_FILES['image']['tmp_name']; $file_type=$_FILES['image']['type']; $img_folder="images/".$img_loc; if(move_uploaded_file($img_loc,$img_folder.$img)) { ?> <script>alert("file successfully saved ! ")</script> <?php } else { ?> <script>alert("file not saved ! ")</script> <?php } } ?> <html> <body> <form name="form1" method="post" enctype="multipart/form-data"> <input type="file" name="image"> <button type="submit" name="upload-img">Click</button> </form> </body> </html> want to select an image from …
The End.
Piyasi