BatDev
Active Member
- Apr 20, 2012
- 110
- 25
Hey guys, anyone fancy spotting the error in my code? I cant seem to spot it
PHP:
<form action="groups.create.php" method="post">
<label>Group Name:</label> <input type="text" name="groupname" /> <br><br>
Group Description: <input type="text" name="groupname" /> <img id="preview"><br><br>
Group Badge: <select name="groupbadge" onchange="document.getElementById('preview').src = this.value">
<?php
$getBadges = mysql_query("SELECT * FROM group_badges");
while($Badges = mysql_fetch_assoc($getBadges)) {
echo "<option value="{$Badges['preview']}">{$Badges['Badge']}</option>";
}
?>
</select>