Forum Moderators: coopster
<form method="post" action="AddUser.php">
USERNAME: <input type="text" name="username" value="">
EMAIL:<input type="text" name="email" value="">
LOCATION:<input type="text" name="location" value="">
USERTYPE:<select name="status">
<option value="Type">User</option>
<option selected value="Admin">Admin</option>
</select>
</form>
<input type="submit" name="submit" value="submit"><input type="reset"> include('dbconfig.php');
$newUsername=$_POST['username'];
$userEmail=$_POST['email'];
$location=$_POST['location'];
$userType=$_POST['Type'];
$userPassword=random_password();
echo $newUsername;
echo $userEmail;
echo $location;
echo $userType;
echo $userPassword;
<form method="post" action="AddUser.php">
USERNAME: <input type="text" name="username" value="">
EMAIL:<input type="text" name="email" value="">
LOCATION:<input type="text" name="location" value="">
USERTYPE:<select name="status">
<option value="Type">User</option>
<option selected value="Admin">Admin</option>
</select>
<input type="submit" name="submit" value="submit"><input type="reset">
</form>