Hey und zwar suche ich ein bestimmetes uploadscript html. Ich bekomme es einfach nicht hin, ich verwende derzeit ein einfaches script aber haette gerne eines wo du etwas hochlaedst und eingeben kannst den: Titel der datei am besten noch irg welche Beschreibung Info und wenn du die Datei dann hochlaedest z.b word oder ein Bild das es dann auch denn gewuenschten Titel auch als Name bekommt. Weiss jemand wie so etwas geht und koennte mir helfen?
THX schonmal:)
Derzeitiges Script:
<?php
$result=0;
if (trim($_POST["action"]) == "Upload File") { //**** User Clicked the Upload File Button
//*********** Execute the Following Code to Upload File *************
$imagename = basename($_FILES['image_file']['name']); // grab name of file
$result = @move_uploaded_file($_FILES['image_file']['tmp_name'], $imagename); // upload it
if ($result==1) echo("Successfully uploaded: <b>".$imagename."</b>"); // did it work?
} // end if
?>
<html>
<head>
<title>Upload file script</title>
</head>
<body>
<form method='POST' enctype='multipart/form-data' name='frmmain' action='uploadfile.php'>
Browse for Image (jpg): <input type="file" name="image_file" size="35">
<br>
<input type="submit" value=" Upload File " name="action">
</form>
<br>
<?php
if ($result==1) echo("<img src='".$imagename."'>"); // display the uploaded file
?>
</body>
</html>
THX schonmal:)
Derzeitiges Script:
<?php
$result=0;
if (trim($_POST["action"]) == "Upload File") { //**** User Clicked the Upload File Button
//*********** Execute the Following Code to Upload File *************
$imagename = basename($_FILES['image_file']['name']); // grab name of file
$result = @move_uploaded_file($_FILES['image_file']['tmp_name'], $imagename); // upload it
if ($result==1) echo("Successfully uploaded: <b>".$imagename."</b>"); // did it work?
} // end if
?>
<html>
<head>
<title>Upload file script</title>
</head>
<body>
<form method='POST' enctype='multipart/form-data' name='frmmain' action='uploadfile.php'>
Browse for Image (jpg): <input type="file" name="image_file" size="35">
<br>
<input type="submit" value=" Upload File " name="action">
</form>
<br>
<?php
if ($result==1) echo("<img src='".$imagename."'>"); // display the uploaded file
?>
</body>
</html>