Eliana
-
Posts
8 -
Joined
-
Last visited
Posts posted by Eliana
-
-
Well... since I can't start over and get books on php that is not an option. If you can't help I understand but maybe there is someone else on the forum that can better assist me with trying to figure this out. All I am asking for is if you understand the php code to help me learn it through practical application since I already have the code all I need is someone who is patient enough to walk through it with me. If there isn't enough time on the form I can communicate via email. what ever works.
-
Properly indent your code and learn PHP syntax.
What? I am trying to learn php syntax, that's why I am asking questions. If you don't want to help please don't respond to my questions.
-
Okay which one is it, do I have too many as stated by Jessica or do I not have enough as stated by PFMABiSMAd?
-
In Dreamweaver it says that there is a syntax error but because I don't know how to code php, I simply watched a tutorial and wrote what the instructor said to write I don't now exactly how to fix the problem.
-
Line 117 is the very last line of this code.
-
Oh okay, thanks. But that's just it, I only see one error in my dreamweaver and its on line 117 the code is as follows:
<?php
if (isset($_GET['success']) && empty ($_GET['success'])){
echo'You\'ve been registered successfully! Please check your email to activate your account';
} else {
if(empty($_POST)=== false && empty($errors) === true){
$register_data = array(
'username' =>$_POST['username]'],
'password' =>$_POST['password]'],
'first_name' =>$_POST['first_name'],
'last_name' =>$_POST['last_name]'],
'email' =>$_POST['email]'],
'email_code' =>md5($_POST['username']+ microtime())
);
register_user($register_data);
header('Location: register.php? success');
exit();
}else{ if (empty($errors) === false) {
echo output_errors($errors);}
}
?>
-
Just recently I watched a video tutorial on created a php database and log in and registration page. I created all the php pages along with the code, I thought I was finished but when I went to style the page as we want it things began to get really confusing. Now I am trying to put the php code information in to the html pages I am making and I getting so many errors I don't know where to begin. Is there anyone out there that I can get to look at the files I created with php and see how I am putting them in the html. I attached the index file we wanted to create for our webpage to include the login and registration php.
Eliana Hebrew
Help with code errors
in PHP Coding Help
Posted
Okay thank for your help.