Announcements | Last Post | |
---|---|---|
SoC Curricula | 09/30/2017 01:08PM | |
Demarcation or scoping of examinations and assessment | 02/13/2017 07:59AM | |
School of Computing Short Learning Programmes | 11/24/2014 08:37AM | |
Unisa contact information | 07/28/2011 01:28PM |
Walkthrough One - PHP User Authentication February 21, 2012 12:38AM |
Registered: 12 years ago Posts: 116 Rating: 0 |
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: 12 years ago Posts: 115 Rating: 0 |
Re: Walkthrough One - PHP User Authentication February 25, 2012 09:10PM |
Registered: 12 years ago Posts: 116 Rating: 0 |
Re: Walkthrough One - PHP User Authentication March 02, 2012 04:09PM |
Registered: 12 years ago Posts: 77 Rating: 0 |
Re: Walkthrough One - PHP User Authentication March 02, 2012 10:34PM |
Registered: 12 years ago Posts: 31 Rating: 0 |
Re: Walkthrough One - PHP User Authentication March 02, 2012 11:53PM |
Registered: 12 years ago Posts: 31 Rating: 0 |
Re: Walkthrough One - PHP User Authentication March 03, 2012 12:08PM |
Registered: 12 years ago Posts: 45 Rating: 0 |
Re: Walkthrough One - PHP User Authentication March 06, 2012 03:08PM |
Registered: 12 years ago Posts: 31 Rating: 0 |
Re: Walkthrough One - PHP User Authentication March 12, 2012 10:39AM |
Registered: 13 years ago Posts: 159 Rating: 0 |
Re: Walkthrough One - PHP User Authentication March 20, 2012 08:50PM |
Registered: 12 years ago Posts: 31 Rating: 0 |
Re: Walkthrough One - PHP User Authentication March 22, 2012 10:33AM |
Registered: 12 years ago Posts: 31 Rating: 0 |
Re: Walkthrough One - PHP User Authentication March 26, 2012 01:20PM |
Registered: 12 years ago Posts: 45 Rating: 0 |
Re: Walkthrough One - PHP User Authentication March 26, 2012 11:19PM |
Registered: 12 years ago Posts: 73 Rating: 0 |
Re: Walkthrough One - PHP User Authentication March 26, 2012 11:42PM |
Registered: 12 years ago Posts: 73 Rating: 0 |
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: 12 years ago Posts: 73 Rating: 0 |
Re: Walkthrough One - PHP User Authentication March 27, 2012 08:59AM |
Registered: 12 years ago Posts: 73 Rating: 0 |
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: 12 years ago Posts: 73 Rating: 0 |
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: 12 years ago Posts: 15 Rating: 0 |
Re: Walkthrough One - PHP User Authentication April 24, 2012 10:08PM |
Registered: 12 years ago Posts: 29 Rating: 0 |
Re: Walkthrough One - PHP User Authentication May 10, 2012 10:41PM |
Registered: 12 years ago Posts: 36 Rating: 0 |