Hi i was wondering if anyone would be able to help me with this.
I have a registration form which submits to a database but i want it so that php detects that a user has entered less that required amount of figures to register this is the code i have of current
<?php if (isset($usereg));
$register = "INSERT INTO users (username) VALUES ('$userregistration')";
if (!mysql_db_query($db,$register))echo "Successfully Registered!";?>
<?php if ($userreg < 8){echo "please enter more than 8 digits";}?>
If someone can see what is wrong with this code please guide me in the right direction i am quite new to PHP , MYSQL programming (like about 3 weeks lol 😃)
Also does anyone know how i can select a specific form example 3 forms on a page named
1. userreg
2adminlogin
3userlogin
for people to login using the admin or standard user do i need to declare variables for each form i havent done user login before well i have but not in hard code i always used dreamweaver pre-generated code (im a cheater! lol)
Kind Regards Pinky