Is php the type of language you use for login pages such as a blog so members can join?
Is php the type of language you use for login pages such as a blog so members can join?
Yes, you can definitely implement login system with PHP.
hi....if you want to create a simple login using PHP....please visit h tt p: //cupu-blagu.blogspot.com/2009/12/create-simple-login-page-using-php.html , i'm sure you can found something useful there :cheerful:
Last edited by Halobitt; Feb 24th, 2010 at 8:32 am.
Last edited by Halobitt; Feb 24th, 2010 at 8:32 am.
I have a php page, such as website.com/files/defualt.php, that just won't load.
at the very beginning of the page, I have a
<?php
header("Location: ?home");
function home(){
/...code.../
}
?>
This is not all of the code, if I need to post all of it, I will. But the problem is that the page takes forever to load, and when finished, it shows no content. I have used different browsers.
PHP MySQL Login Script:
PHP MySQL Login*Script
more php login examples: php login script - Google Search
Last edited by vectro; Jul 14th, 2010 at 6:13 pm. Reason: Merged
Vectro Web Hosting - Web hosting with solid tech support.
x Proxy Host - Affordable PHP proxy hosting with proxy-specific features.
Vectro Web Hosting - Web hosting with solid tech support.
x Proxy Host - Affordable PHP proxy hosting with proxy-specific features.
Yes. in php you done that task, and i'll give a appropriate code to you just try
form name:index_dir.php
Code:<?php if(isset($_POST['posted'])) { $name=$_POST['dir_username']; $pass=$_POST['dir_password']; $connect=mysql_connect('localhost','root',''); $db=mysql_select_db('dir_db',$connect); $query=mysql_query('SELECT * FROM dir_login',$connect); while($row=mysql_fetch_array($query)) { $column1=$row['username']; $column2=$row['password']; if($column1 == $name && $column2 == $pass) { header('location:registration_dir.php'); } else { echo('Sorry Username and password is mismatch'); exit(); } } } ?> <form name="index_dir" method="post" action="index_dir.php"> <table align="center" border=""> <tr> <td> <b style="background-color:#063">USERNAME</b> <input type="text" name="dir_username" value="USERNAME" style="background-color:#966"> </td> </tr> <tr> <td><b style="background-color:#063">PASSWORD</b> <input type="password" name="dir_password" value="*****" style="background-color:#966"> </td> </tr> <tr> <td><input type="hidden" name="posted" value="true>"></td> <td> <input type="submit" name="dir_submir" value="GO" style="background-color:#063"> </td> </tr> </table> </form>

I prefer PHP for login systems. If you have a forum, you can integrate the login system into the main web site or blog even. You can Google the codes.
Most CMS (content management systems) have the login systems automatically installed. That way you don't have to integrate the PHP login system by yourself with your third party forum software.
Drupal and Xoops or even Joomla have it. You can probably install these yourself or even have CPanel's Fantastico install them.
Last edited by vectro; Jul 16th, 2010 at 3:08 am. Reason: Merged
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks