something like this should work
and then in image-upload.phpHTML Code:<form enctype="multipart/form-data" action="image-upload.php" method="POST"> <fieldset> <input name="theimage" type="file" /> <input type="submit" value="Upload" /> </fieldset> </form>
PHP Code:$target_path = "/home/ACCOUNTNAME/public_html/images/";
$target_path = $target_path . basename( $_FILES['theimage']['name']);
if(move_uploaded_file($_FILES['theimage']['tmp_name'], $target_path)) {
echo "<p>The image ". basename( $_FILES['theimage']['name']). " has been uploaded</p>";
} else{
echo "<p>There was an error uploading the image, please try again!</p>";
}
LinkBack URL
About LinkBacks
Reply With Quote


Bookmarks