Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 21:08

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[PHP]Avatarcreator

Discussion on [PHP]Avatarcreator within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2008
Posts: 1,604
Received Thanks: 1,537
[PHP]Avatarcreator

Hallo , ich wollte auch mal einen Avatarcreator erstellen , dieser funktioniert so:
Dort ist eine Inputbox wo ich einen Buchstaben von A-Z eingeben muss.
Wenn ich jetzt z.b dort "M" eingebe dann soll er das bild namens "M.png" anzeigen. Weiß jemand wie das funktioniert?

Beispiel:



Ich weiß nicht ob ich hier richtig bin , doch hab gesehen das hier jemand anders auch etwas bezüglich PHP gefragt hat
lg mufkeksy
mufkeksy is offline  
Old 06/26/2011, 11:08   #2
 
shadow52's Avatar
 
elite*gold: 13
Join Date: May 2009
Posts: 1,314
Received Thanks: 1,483
Schau mal hier

sollte normal gehen.
(Habe leider grade keine möglichkeit zutesten ob es geht falls es nicht geht oder ein fehler ausgibt bitte posten!)

Hier nochmal der Code falls du nicht auf den link gehen willst.
PHP Code:
<?php
$bild 
$_GET['bild'];
echo 
'<html><head>';
echo 
'<meta http-equiv="content-type" content="text/html; charset=windows-1252"></head><body style="background-color: transparent;">';
echo 
'<table width="100%" border="0" cellpadding="0" cellspacing="0">';
echo 
'<tbody><tr>';
echo 
'<td align="top">';
echo 
'<img src='.$bild.'.png" width="278" height="37" border="0"></td></tr></tbody></table>';
echo 
'</body></html>';
?>
shadow52 is offline  
Thanks
2 Users
Old 06/26/2011, 11:21   #3
 
elite*gold: 0
Join Date: Nov 2008
Posts: 1,604
Received Thanks: 1,537
Funktioniert irgendwie nicht.
Hab jetz eine Inputbox gemacht , das sieht nun so aus:
Wenn ich da jetz "a" eingebe soll er "./images/a.png" anzeigen -.-

Code:
<form method="post">
<input type="text" name="myInput" id="myInput"><br />
<input type="submit" name="submit" value="Submit">
</form>
mufkeksy is offline  
Old 06/26/2011, 13:33   #4
 
NotEnoughForYou's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 3,406
Received Thanks: 2,024
wie wärs mit
PHP Code:
str_replace 
?

Quote:
Wenn ich da jetz "a" eingebe soll er "./images/a.png" anzeigen -.-
PHP Code:
<?php
$zeichenkette 
$_POST['myInpute'];

echo 
str_replace("a","<img src='./images/a.png' />",$zeichenkette);


?>
NotEnoughForYou is offline  
Old 06/26/2011, 13:44   #5
 
beatd0wn[]'s Avatar
 
elite*gold: 220
Join Date: Mar 2011
Posts: 247
Received Thanks: 75
versuchs mal hiermit
beatd0wn[] is offline  
Reply




All times are GMT +1. The time now is 21:09.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.