Exemple #1
0
 $var9 = $_POST["dept"];
 $var10 = $_POST["year"];
 $var11 = $_POST["gen1"];
 $var12 = $_POST["gen2"];
 $var13 = $_POST["gen3"];
 $var14 = $_POST["gen4"];
 $var15 = $_POST["gen5"];
 $var16 = $_POST["knowweb"];
 $var17 = $_POST["joinweb"];
 $var18 = $_POST["exceptweb"];
 $var19 = $_POST["mobile_no"];
 $apply = $var11 . $var12 . $var13 . $var14 . $var15;
 $funObj = new dbFunction();
 $register1 = $funObj->create();
 if ($register1) {
     $register2 = $funObj->insert($var1, $var2, $var3, $var7, $var19, $var8, $var9, $var10, $apply, $var16, $var17, $var18, $var4, $var6);
     if ($register2) {
         $token = sha1(uniqid($var4, true));
         $time = $_SERVER['REQUEST_TIME'];
         $sql = "insert into verify(token,username,tstamp) values('{$token}','{$var4}',{$time})";
         $result = mysql_query($sql);
         if ($result) {
             $to = $var7;
             // note the comma
             // subject
             $subject = 'activate your account(Webarch recruitment)';
             // message
             $message = "\n<html>\n<head>\n  <title>activate</title>\n</head>\t\n<body>\n  <p>please activate your account to furthur login to portal by clicking in the following link</p>\n\t<a href='http://localhost/home/home/home/home/activate.php?token={$token}'>click here please</a>\n</body>\n</html>\n";
             // To send HTML mail, the Content-type header must be set
             $headers = 'MIME-Version: 1.0' . "\r\n";
             $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";