Yellow!
Here I'm again with somethign that keeps me puzzled. I've taken the code apart and all but it simply won't work.
Why would this work but the same code belwo with jpeg wouldn't save the file and image?
GIF CODE:
if ( isset( $img1 ) )
{
if ( $img1_type == "image/gif" )
{
$fileName = "$name.gif";
copy ( $img1, "bilder/$fileName") or die ( "<b>Warnung!</b> " );
$message = "<B>$name </B> -- $datum<P> $text <BR>
<IMG SRC=\"bilder/$fileName\"> <BR><HR>";
$fp = @fopen("$name.txt","w");
fwrite($fp, $message);
fclose($fp);
}
}
JPG CODE
if ( isset( $img1 ) )
{
if ( $img1_type == "image/jpeg" )
{
$fileName = "$name.jpg";
copy ( $img1, "bilder/$fileName") or die ( "<b>Warnung!</b>" );
$message = "<B>$name </B> -- $datum<P> $text <BR>
<IMG SRC=\"bilder/$fileName\"> <BR><HR>";
$fp = @fopen("$name.txt","w");
fwrite($fp, $message);
fclose($fp);
}
}
Somebody ideas?
Thanx for help