jayLim Posted March 1, 2014 Share Posted March 1, 2014 Hello Forum! In Chapter 4 "Creating the Form" part, I created the login_form.inc.php but I might be missing something because I don't see any login form in index.php page so I can test it out. J. Link to comment Share on other sites More sharing options...
abigail Posted March 1, 2014 Share Posted March 1, 2014 It's probably in the includes directory. But I don't know the actual name of it because I don't have that book. Link to comment Share on other sites More sharing options...
jayLim Posted March 1, 2014 Author Share Posted March 1, 2014 I mean I have included login_form.inc.php in the content section in header.html, but still I don't see the login form. Link to comment Share on other sites More sharing options...
jayLim Posted March 1, 2014 Author Share Posted March 1, 2014 Oh I see, I removed the ! symbol in the if(isset($_SESSION['user_id'])) statement. Link to comment Share on other sites More sharing options...
jayLim Posted March 2, 2014 Author Share Posted March 2, 2014 But, after successfully logging in, how can I make the register tab not shown? and is there a way to style the crete_form_input function so it looks a bit nicer, in css of course (I know it's off subject, but I don't seem to find enough info in the web). Link to comment Share on other sites More sharing options...
Larry Posted March 3, 2014 Share Posted March 3, 2014 To hide the register tab, you'd just add conditional logic that only shows it if the person isn't logged in. You can style the form elements however you'd like by changing the CSS. Link to comment Share on other sites More sharing options...
jayLim Posted March 5, 2014 Author Share Posted March 5, 2014 cool thank you! Link to comment Share on other sites More sharing options...
Recommended Posts