benjahmen
Members
-
Joined
-
Last visited
Reputation Activity
-
benjahmen reacted to mrludable in Portfolio SiteThanks benjahmen, yea coded all myself, except any Javascript / jQuery (that's next on the list to learn). I'm still getting used to HTML5 & CSS3.
I'm working on a few sites at the moment, so will be adding newer projects to the 'My Work' section, when they're done.
-
benjahmen reacted to webdeveloper93 in PHP logon script help!I will pass this on either today or tommorow and nah ur ok I believe your a legit enough member that I can help you out -
benjahmen reacted to webdeveloper93 in PHP logon script help!I can pass your email on to him or her just post what you wanna say in this thread and after I pass it on ill remove the message from this thread -
benjahmen reacted to gadgetgirl in PHP logon script help!Not really sure what the question is anymore. If I understand correctly you require a login form which will check the validity of the password, which is not stored in a database. You then want the logged in status to transfer across different pages in the website.
To securely store the password you can either save an encrypted version of it in a text file outside the webroot directory or in the php file - just be sure you encrypt it. Use html for the display of the login form with an action to a php script to validate the form data and start the session if a valid password has been entered. Then each page should check the session variable and redirect if not valid.
I did not know this - presumably the default is the current script? Would you say it is still better practice to include the action for clarity or does it not matter?
-
benjahmen got a reaction from Jo 90 in how to purchase membership?I must be fairly stupid to have not noticed this before!
Thanks for clearing this up quickly and easily!
-
benjahmen reacted to Nillervision in PHP logon script help!I found a newer tutorial on his site. This one appears to cover the same topic using msqli instead
http://www.developphp.com/view.php?tid=1296
-
benjahmen reacted to gadgetgirl in PHP logon script help!Your form doesn't have an action so no processing of the form will ever occur.
<form action="#" method ="post"> The action field tells the browser which script will process the form - in the above instance, the current script will handle the form. Because the method is set to 'post', all the form variables can be accessed via the $_POST global variable.
You'd do best to look at some basic tutorials for forms - html and php and css. Learn about separating markup from styling. Not only will you get a lot more help because your code will be much more readable, but because it is the right thing to do on so many levels.