- Impact
- 7
PhP question
Hey guys,
I have a question, that is probably sooo simple, yet I cannot figure it out. Here's my question, why won't this code work
Thanks,
-CP
I knew it was going to be simple, I figured it out, my bad to anyone that has/had tried to help me, I put require, instead of include LOL
-CP
Hey guys, since I figured out that problem, guess what? I have another. I need to make it so that way if they do not fill out all of the fields, it says something like error: all fields not complete.
-CP
Hey guys,
I have a question, that is probably sooo simple, yet I cannot figure it out. Here's my question, why won't this code work
PHP:
<?php
session_start();
require("dbconn.php");
?>
<html>
<center>
<body bgcolor="black">
<div align="center"><font color="#ffffff"><font size="5">Registration</font></font></div>
<div align="center"><font color="#ffffff"><font size="5"> </div>
<form action="member.php" method="POST">
Username:
<input type="text" name="uname" value="Username Here">
<br>
Password:
<input type="password" name="pwd1" value="password">
<br>
Password Again:
<input type="password" name="pwd2" value="password2">
<br>
E-Mail:
<input type="text" name="email" value=""> (ex. [email protected])
<br>
Date Of Birth(optional):
<input type="text" name="dob" value="">
<br>
Gender(optional):
<input type="text" name="G" value="">
<br>
<input type="submit" name="sub" value="SUBMIT!">
<?php
if($login == 'register');
$uname = $_POST['uname'];
$pwd1 = $_POST['pwd1'];
$pwd2 = $_POST['pwd2'];
$email = $_POST['email'];
if(!$uname || !$pwd1);
echo ('Please fill out the form');
exit;
?>
-CP
I knew it was going to be simple, I figured it out, my bad to anyone that has/had tried to help me, I put require, instead of include LOL
-CP
Hey guys, since I figured out that problem, guess what? I have another. I need to make it so that way if they do not fill out all of the fields, it says something like error: all fields not complete.
-CP