I write down the code for a page that a user enter thier
ic number with his access code(which is already in the database)
but now i am facing problem, coz without sessions i want it to confirm
tha values against the database & than go for next page where user can
enter thier other details, like fullname,email,username,h/p etc.
Is for this the sessions required.
My mysql is query is:
Expand|Select|Wrap|Line Numbers
- dbConnect('db');
- if ($_POST['icnumber']==''
- or $_POST['acccode']=='') {
- error ('One or more required fields were left blank.\\n'.
- 'Please fill them in and try again.');
- }
- $icnumber=($_POST['icnumber']);
- $acccode=($_POST['acccode']);
- $sql = "SELECT icnumber,acccode FROM m_users WHERE
- icnumber = '$icnumber' AND acccode = '$acccode'";
- $result = mysql_query($sql);
- if (!mysql_query($sql)<0)
- {
- include ('add.html');
- exit;
- }
- else
- {
- error('A database error occurred in processing your '.
- 'submission.\\nIf this error persists, please '.
- 'contact you@example.com.');
- }
thanks.