Hello, I'm very to new to php (I began to learn a week ago). I have tried writing a script, an avatar system. I'm not that good at PHP terms but i'll try and explain. I have a drop down bar-type thing that lets you choose your avatar. here, i'll put the code and that might explain better. Its name is avatarform.php:
<center>
<?php
$avatar = $_POST['avatar'];
echo "Current Avatar: $avatar";
echo "<img src=triumph.flawlesshosting.net/avatar/$avatar.gif>";
?>
<br>
<br>
Change Avatar<br><form action="avatarchange.php" method="post">
<select name="avatar">
<option>Default</option>
<option>------------</option>
<option>Nekou</option>
<option>Simbei</option>
<option>Koinu</option>
</select>
<input type="submit" value="Change">
</form>
I Currently have it so when it goes to avatarchange.php it shows the avatar the user wanted:
<?php
$avatar = $_POST['avatar'];
echo "You have just changed your avatar to: $avatar!<br/><br/>";
echo "<img src=http://triumph.flawlesshosting.net/avatar/$avatar.gif><br/>";
?>
<p>
<br>
<a href=avatarform.php>Choose a different avatar.</a> | <a href=messageboard.php>Continue to the messageboards!</a><br><br>
It only shows the avatar I want on avatarform.php and when I try to make an echo for it to show up on another page it doesn't show up. I want to know how it could store the avatar information. I know I have not explained it well but someone might be able to get what i'm saying.
Thanks,
Ryan