0) { //echo "Return Code: " . $_FILES["attachment"]["error"] . "
"; } else { //if (file_exists("./uploads/member/" . $_FILES["attachment"]["name"])) { // echo $_FILES["attachment"]["name"] . " already exists. "; //} else { move_uploaded_file($_FILES["attachment"]["tmp_name"], "./uploads/member/" . $_FILES["attachment"]["name"]); //echo "Stored in: " . "uploads/" . $_FILES["attachment"]["name"]; //} } } else { //echo "Invalid file"; } $sql = "insert into register (activated, attachment, surname, middleName, givenName, department, correspondentAddress, institute, city, country, phoneNumber, mailAddress, password, proposerName, seconderName, status, seq, createby, createdt, updateby, updatedt) " . " values (" . "'N'," . "'" . addslashes($attachment) . "'," . "'" . addslashes($surname) . "'," . "'" . $middleName . "'," . "'" . $givename . "'," . "'" . $department . "'," . "'" . addslashes($address) . "'," . "'" . $ins . "'," . "'" . $city . "'," . "'" . $country . "'," . "'" . $phoneNumber . "'," . "'" . $email . "'," . "'" . md5($password) . "'," . "'" . $proposer . "'," . "'" . $secname . "'," . "'c'," . "'0'," . "'ADMIN'," . "Now()," . "'ADMIN'," . "NOW())"; $linkptr->Execute($sql); // Email the password to user header("Location: membership_success.php"); exit(); } $photo=array(); $photo[]=array("id"=>"0", "src"=>"./img/member/benefit_btn2.png", "src2"=>"./img/member/benefit_btn.png"); $photo[]=array("id"=>"1", "src"=>"./img/member/memberLogin_btn2.png", "src2"=>"./img/member/memberLogin_btn.png"); $photo[]=array("id"=>"2", "src"=>"./img/member/membership_btn2.png", "src2"=>"./img/member/membership_btn2.png"); ?>
Execute($sql); if ($rs) { while (!$rs->EOF) { $content = stripslashes($rs->fields["content"]); echo "
" . $content . "
"; $rs->MoveNext(); } } ?>
APPLY FOR MEMBERSHIP
Surname*:
Middle Name:
Given Names*:
Department:
Institute*:
Address*:
City*:
Country*:
Phone Number:
Email*:
Confirm Email*:
Proposer Name*:
Seconder Name*: