> <script type="text/javascript">
> function DoRedirect(){
> location.href = "show_billede.php?billede=billede2.jpg";
> }
>
> //5 sekunder.
> setTimeout("DoRedirect()", 5000);
> </script>
Tak.. vender nok tilbage, for får nok problemer med javascriptet..
Men mit upload script virker desværre ikke..
upload scriptet er her:
<html>
<head>
<title>Upload Pictures and make your personally slideshow.</title>
</head>
<body>
<?
if(isset($_POST['uploadform']))
{
foreach($_FILES["upload"] AS $filesArr) {
$name = $filesArr["name"];
$tmpname = $filesArr["tmp_name"];
$fileSize = $filesArr["size"];
$fileType = $filesArr["type"];
}
include 'config.php';
include 'opendb.php';
$query = "INSERT INTO uploadpics (name, size, type ) ".
"VALUES ('$name', '$fileSize', '$fileType')";
mysql_query($query) or die('Error, query failed');
include 'closedb.php';
echo "<br>Slideshowed $slideshow er blevet lavet<br>";
echo "<br>Klik <a href='
HER'>http://video.enzolim.dk/slideshow/vis.php'>HER
og find dit slideshow<br>";
}
$destination = "
http://video.enzolim.dk/slideshow/pics/" . $filesArr["name"];
//Forsøg at flyttede den uploadede fil har dens midlertidige destination til
den nye
if (move_uploaded_file($filesArr["tmp_name"],
$destination))
?>
<form action="" method="post" enctype="multipart/form-data"
name="uploadform">
<table width="350" border="0" cellpadding="1" cellspacing="1" class="box">
<tr>
<td width="246"><input type="hidden" name="MAX_FILE_SIZE"
value="2000000">
<form type='file' name='upload[]'><br></br>
<form type='file' name='upload[]'><br></br>
<form type='file' name='upload[]'><br></br>
<form type='file' name='upload[]'><br></br>
<form type='file' name='upload[]'><br></br>
<form type='file' name='upload[]'><br></br>
<form type='file' name='upload[]'><br></br>
<form type='file' name='upload[]'><br></br>
<form type='file' name='upload[]'><br></br>
<form type='file' name='upload[]'><br></br>
</td>
<td width="80"><input name="uploadform" type="submit" class="box"
id="uploadform" value=" Upload "></td>
</tr>
</table>
</form>
</body>
</html>
Den udfører uden problemer, men upload formene virker desværre ikke, der er
ingenting, når man loader siden, står der bare upload (altså som en knap.)
kig selv her:
http://video.enzolim.dk/slideshow/uploadpicture.php
nogle der kan finde fejlen??
Ralle
--
Vil du lære at kode HTML, XHTML, CSS, SSI, ASP eller ASP.NET?
- Pædagogiske tutorials på dansk
- Kom godt i gang med koderne
KLIK HER! =>
http://www.html.dk/tutorials