February 21, 2012 12:38AM | Registered: 1 year ago Posts: 132 |
This is because passwords needs to be secured and the second code renders it in an unsecured manner.Language: HTML<INPUT TYPE = 'password' Name ='password' value="<?PHP print $pword;?>" maxlength="16"> not <INPUT TYPE = 'TEXT' Name ='password' value="<?PHP print $pword;?>" maxlength="16">

|
Re: Walkthrough One - PHP User Authentication February 25, 2012 04:20PM | Registered: 1 year ago Posts: 115 |
February 25, 2012 09:10PM | Registered: 1 year ago Posts: 132 |
|
Re: Walkthrough One - PHP User Authentication March 02, 2012 04:09PM | Registered: 1 year ago Posts: 88 |
|
Re: Walkthrough One - PHP User Authentication March 02, 2012 10:34PM | Registered: 1 year ago Posts: 36 |
|
Re: Walkthrough One - PHP User Authentication March 02, 2012 11:53PM | Registered: 1 year ago Posts: 31 |
|
Re: Walkthrough One - PHP User Authentication March 03, 2012 12:08PM | Registered: 1 year ago Posts: 64 |
March 06, 2012 03:08PM | Registered: 1 year ago Posts: 41 |
|
Re: Walkthrough One - PHP User Authentication March 12, 2012 10:39AM | Registered: 2 years ago Posts: 165 |
|
Re: Walkthrough One - PHP User Authentication March 20, 2012 08:50PM | Registered: 1 year ago Posts: 37 |
|
Re: Walkthrough One - PHP User Authentication March 22, 2012 10:33AM | Registered: 1 year ago Posts: 35 |
|
Re: Walkthrough One - PHP User Authentication March 26, 2012 01:20PM | Registered: 1 year ago Posts: 55 |
|
Re: Walkthrough One - PHP User Authentication March 26, 2012 11:19PM | Registered: 1 year ago Posts: 100 |
|
Re: Walkthrough One - PHP User Authentication March 26, 2012 11:42PM | Registered: 1 year ago Posts: 100 |
Language: PHP<?php // code... $sql = 'SELECT id,title FROM news LIMIT '.$_GET['offset'].',10'; $result = mysql_query($sql); // more code... ?>
Language: PHP<?php // code... $sql = 'SELECT id,title FROM news LIMIT '.intval($_GET['offset']).',10'; // sanitised input $result = mysql_query($sql); // more code... ?>
|
Re: Walkthrough One - PHP User Authentication March 27, 2012 08:46AM | Registered: 1 year ago Posts: 100 |
|
Re: Walkthrough One - PHP User Authentication March 27, 2012 08:59AM | Registered: 1 year ago Posts: 100 |
Language: PHP// include SMTP Email Validation Class require_once('smtp_validateEmail.class.php'); // the email to validate $email = 'user@example.com'; // an optional sender $sender = 'user@mydomain.com'; // instantiate the class $SMTP_Validator = new SMTP_validateEmail(); // turn on debugging if you want to view the SMTP transaction $SMTP_Validator->debug = true; // do the validation $results = $SMTP_Validator->validate(array($email), $sender); // view results echo $email.' is '.($results[$email] ? 'valid' : 'invalid')."\n"; // send email? if ($results[$email]) { //mail ($email, 'Confirm Email', 'Please reply to this email to confirm', 'From:'.$sender."\r\n"); // send email } else { echo 'The email addresses you entered is not valid'; }
|
Re: Walkthrough One - PHP User Authentication March 27, 2012 09:04AM | Registered: 1 year ago Posts: 100 |
Language: PHP// include SMTP Email Validation Class require_once('smtp_validateEmail.class.php'); // the email to validate $emails = array('user@example.com', 'user2@example.com'); // an optional sender $sender = 'user@yourdomain.com'; // instantiate the class $SMTP_Validator = new SMTP_validateEmail(); // turn on debugging if you want to view the SMTP transaction $SMTP_Validator->debug = true; // do the validation $results = $SMTP_Validator->validate($emails, $sender); // view results. foreach($results as $email=>$result) { // send email? if ($result) { //mail($email, 'Confirm Email', 'Please reply to this email to confirm', 'From:'.$sender."\r\n"); // send email } else { echo 'The email address '. $email.' is not valid'; } }
|
Re: Walkthrough One - PHP User Authentication April 09, 2012 07:25PM | Registered: 1 year ago Posts: 18 |
|
Re: Walkthrough One - PHP User Authentication April 24, 2012 10:08PM | Registered: 1 year ago Posts: 29 |
|
Re: Walkthrough One - PHP User Authentication May 10, 2012 10:41PM | Registered: 1 year ago Posts: 41 |