- Joined
- Oct 28, 2008
- Messages
- 1,557
- Reaction score
- 368
Okay, so I've got this login script and here's how it is on the HTML code:
So that's my HTML file, I'm including it in my register but on my register I'm not sure how to do like if 'm' selected =
But how exactly would I make the if to do if 'f' selected =
Would be very appreciated since I'm not that good at PHP and only a beginner.
- Thanks!
Code:
<strong>Choose your gender</strong><br>
<select name="bean.gender" style="width: 200px;"><option value="m">Male</option><option value="f">Female</option></select>
So that's my HTML file, I'm including it in my register but on my register I'm not sure how to do like if 'm' selected =
Code:
// Add user
$users->add($name, $core->uberHash($password), $email, 1, 'ch-215-92.hr-802-61.sh-908-90.hd-190-1.lg-275-82', 'M');
Code:
// Add user
$users->add($name, $core->uberHash($password), $email, 1, 'hr-500-39.hd-600-7.ch-630-64.lg-695-73.sh-725-75', 'F');
Would be very appreciated since I'm not that good at PHP and only a beginner.
- Thanks!