PHP and forms
Posted: Wed Sep 11, 2002 11:49 pm
Ok this is a form I'm trying to create for a Game forum I mod @. Here is what I'm trying to do. Create a form that would ask users to Upload the maps (Screen Shots) SS, author name, map's brief description and type of map into a mysql database. Maps are later reviewed and posted as Map of the week, month, year, etc. In the code below, for now, I'm only looking at collecting author name, description and type of map. Next step would be to save it in MYSQL DB.
Please let me if I'm on the right track! THanks
Please let me if I'm on the right track! THanks
Code: Select all
if ($submit == "click"){
echo "Hello, $UserName";
}
else{
echo '
<html><body>
<form method="post" action="input.php3">
Enter Your Name
<input type="text" name="Name"></input><br>
<input type="submit" name="submit" value="click"></input>
Enter Map's brief description
<input type="text" name="description"></input><br>
<input type="submit" name="submit" value="click"></input>
Enter Map's Type
<input type="text" name="type"></input><br>
<input type="submit" name="submit" value="click"></input>
</form>
</body></html>
';
}
?>