Hallo,
Habe mir ein Signatur generator erstellt und habe folgendes Problem.
wenn ich alles eintrage und Signatur erstellen amche wirde das Bild angezeigt.
wenn ich dann Rechtsklick und speichern unter mache,
kann ich es nicht speichern.
dort steht dann nur siggy und das format kann man nicht wählen.
index.php
PHP
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body>
<br>
<body background="bg_index.png">
<br /><br /><br /><br /><br />
<center><font color="#000000 ">Rechtsklick -> Speichern unter...<br />
Right Click -> Save As...</font></center>
<br /><br />
<center>
<form action="siggy.php" method="post">
<table border="0">
<tr><td><small><big><font color="#000000 ">
CharName:</font></big></td><td> <input name="texting" type="text" maxlength="16"></small></td></tr>
<td><small><big><font color="#000000 ">
Level:</font></big></td><td><input name="texting3" type="text" maxlength="3"></small></td></tr>
<tr><td><small><big><font color="#000000 ">
Server:</font></td><td><input name="texting4" type="text" maxlength="12"></small></td></tr>
<tr><td><small><big><font color="#000000 ">
Clan:</font></big></td><td><input name="texting5" type="text" maxlength="12"></small></td></tr>
<tr><td>
<font color="#000000 ">Bild:</font></td><td>
<select name="race">
<option>GrindRoad Blue</option>
<option>GrindRoad Green</option>
<option>GrindRoad Red</option>
<option>GrindRoad Purple</option>
</select><br>
</td></tr>
</table>
<br />
<input name="submit" value="Signatur Erstellen" type="submit">
</form>
</center>
<center><font color="#000000">Mehr Skins kommen später noch dazu !<br />
More Skins coming soon...</font></center>
<br />
<br />
<br />
<br />
<br />
<br />
<center><a href="" title="Besucherzaehler"><img
src="http://c.andyhoppe.com/1312980160" style="border:none" alt="Besucherzaehler" /></a>
</center>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<center>
<iframe src="vorschau.html" width="700" height="250" frameborder="0" scrolling="auto"></iframe>
</center>
<br />
</body>
</html>
Alles anzeigen
siggy.php
PHP
<?php
header("Content-Type: image/png");
$text = $_POST['texting'];
$text2 = $_POST['texting2'];
$text3 = $_POST['texting3'];
$text4 = $_POST['texting4'];
$text5 = $_POST['texting5'];
$raced = $_POST['race'];
$raced = $_REQUEST['race'];
If ( $raced == "GrindRoad Blue") {
$im = imagecreatefrompng("Blue.png");
}
If ( $raced == "GrindRoad Green") {
$im = imagecreatefrompng("Green.png");
}
If ( $raced == "GrindRoad Red") {
$im = imagecreatefrompng("Red.png");
}
If ( $raced == "GrindRoad Purple") {
$im = imagecreatefrompng("Purple.png");
}
$color = imagecolorallocate($im, 255, 255, 255);
$color2 = imagecolorallocate($im, 255, 255, 255);
$width = imagesx($im);
$height = imagesy($im);
$font = 3;
$font2 = 100;
$text = $_REQUEST['texting'];
$text2 = $_REQUEST['texting2'];
$text3 = $_REQUEST['texting3'];
$text4 = $_REQUEST['texting4'];
$text5 = $_REQUEST['texting5'];
$leftTextPos = ( $width - imagefontwidth(5)*strlen($text)-340);
$leftTextPos3 = ( $width - imagefontwidth(5)*strlen($text3)-406);
$leftTextPos4 = ( $width - imagefontwidth(5)*strlen($text4)-350);
$leftTextPos5 = ( $width - imagefontwidth(5)*strlen($text5)-308);
$text = $_REQUEST['texting'];
$text2 = $_REQUEST['texting2'];
$text3 = $_REQUEST['texting3'];
$text4 = $_REQUEST['texting4'];
$text5 = $_REQUEST['texting5'];
imagestring($im, $font2, $leftTextPos, $height-102, "$text", $color);
imagestring($im, $font, $leftTextPos3, $height-73, "Level: $text3", $color);
imagestring($im, $font, $leftTextPos4, $height-57, "Server: $text4", $color2);
imagestring($im, $font, $leftTextPos5, $height-40, "Clan: $text5", $color);
imagepng($im);
imagedestroy($im);
?>
Alles anzeigen
Mfg
hoffe ihr könnt helfen.