Hello Nullw0rm, thanks for rewriting the code more clear. But your code also gives error. I have found how to work it without problem.
HTML CODE must be like this:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hello!</title>
</head>
<body>
<form name="form1" action="process.php" method="post">
Username: <input type="text" name="uname" /> <br />
Password: <input type="password" name="pass" /> <br />
Select type of weapon:<br />
<select name="weapon1">
<option value="sword">Sword</option>
<option value="rifle">Rifle</option>
<option value="knife">knife</option>
</select>
<input type="submit" value="Submit" name="submit1" />
</form>
</body>
</html>
PHP code must be like this:
<?php
$submit1 = $_POST['submit1'];
$uname = $_POST['uname'];
$pass = $_POST['pass'];
$weapooon1 = $_POST['weapon1'];
echo $uname;
echo '<br />';
echo $weapooon1;
echo '<br />';
echo $pass;
?>
Yes , i can work with mysql, but as i said i am amateur. I want to learn deeply php. I even dont know how to directly insert this values into the database. I am more than happy if u would help me with my php. thaaaanks. :) let be friends.
Edited by Alexander, 19 October 2010 - 05:27 PM.
Merged posts