11-12-2004, 12:16 AM
|
#1
|
|
Guest
|
why does this not work
PHP Code:
<form action="uploader.php" enctype="multipart/form-data">
Upload pictures into album:
<?php
$server='cslab103.cs.edinboro.edu';
$user='f051g4';
$pass='group4';
$db='f051g4';
$link = mysql_connect($server,$user,$pass);
if (!$link)
{
print "Cannot connect to server";
exit;
}
mysql_select_db("$db",$link)
or die("Couldn't open $db: ".mysql_error());
$query = "SELECT * FROM albums";
$results = mysql_query($query, $link);
$num_results = mysql_num_rows($results);
print "<select name='album'>";
while ($row=mysql_fetch_array($results))
{
print "<option>$row[name]\n";
}
?>
<input type="file" name="data">
<input type="submit" value="Send files">
</form>
in ie6 everything is ok, in mozilla or mozilla firefox it doesn't show anything but the select box
if you go to view source its all there
Last edited by 2483; 11-12-2004 at 12:28 AM.
|
|
|
|