Jump to content

vinsux

Members
  • Posts

    45
  • Joined

  • Last visited

Everything posted by vinsux

  1. //some php sql codes echo "<form action='survey.php' method='POST'>"; echo "<td class = name> <input type='checkbox' name='vote[]' value='$sql_row[name]' id='$sql_row[id]'>".$name."</td>"; echo "</tr>"; } } echo "<tr><td class = btn><button type='submit' name='btnSurvey'>Vote</button></td> </tr></form>"; echo "<form action='viewsurvey.php' method='POST'>"; echo "<tr><td class = btn><button type='submit' name='btnResult'>Results</button></td> </tr></form>"; echo "</table>"; //echo " <tr><td><button type='submit' name='btnSurvey'>Vote</button></td> </tr></form>"; } mysql_close(); include('connect.php'); $result = mysql_query("SELECT * from candidates"); //adding only one candidate if(!empty($_POST['vote'])) { foreach($_POST['vote'] as $check) { // echo $check; mysql_query("UPDATE candidates SET votes = votes + 1 WHERE name = '$check'"); header("Location: viewsurvey.php"); exit(); } } // some codes i found a bug on my work, my work is about survey, users will choose from 20+ candidates and they need to select only 12.. i used check box for user to select more than one candidate to vote, i want to set it until 12 but i can only add one vote on the candidate even i checked (or vote) more than one. help please..
  2. gotcha!.. thanks a lot bro and also PsyCho...
  3. ^ that sample code is what i'm looking for, but i tried that code and it's not working... sorry for my bad english..
  4. i tried this one //sql parts $percentage = $votes / 100 * $total; echo "<td class = result style='width:echo $percentage;%'>".$votes."</td>"; but it's not working
  5. i already found out the solution on counting the values, i only need the solution on how to set the width of a table from the value from the database..
  6. hi there, i just wanna ask a question.. i'm making a poll using php right now.. may i ask if it's possible to set the width of a <td> in a table from the values from the database?.. also how can i count the total value of numbers in a database. in my database, i have a number of votes from different names, how can i count them all? because i need it to get the percentage of the votes.. please help me thanks and god bless..
  7. ^ ^ So even there's no internet?.. if i access that localhost sever.. i can access the website.. and the changes i've been made in the localhost can change in the online too???... Is there a tutorial on what to do on that one?? i can't find on the internet.. i just badly need it.. tnxxxxx
  8. Is it possible to have a localhost server in your online website... so that even there's no internet.. you can still access the website and if you use the localhost server, the same registered users in online can use it?.. and you can register users too??.. I'm using cpanel on my website.... is it applicable???
  9. ^ ^ tnx sir.. i got the logic and the code for that.. but how about this one?? the content is in one declaration of if else.. so hard... There's still a header error.. i can't understand the logic on this code.. on how the header will be placed.. <?php session_start(); ?> <!DOCTYPE html> <html lang="en"> <?php include('include/header.php'); ?> <body> <?php include('include/container.php'); ?> <?php include('include/left.php'); ?> <?php include('include/panelstud.php'); ?> <div id="right"> <h3>Student Change Password</h3> <?php if(isset($_SESSION['id'])) { $username = $_SESSION['id']; if (isset($_POST['submit'])) { if(!$_POST['oldpassword'] | !$_POST['newpassword'] | !$_POST['repeatnewpassword']) { die('You did not fill in a required field...<a href=studchangepass.php>Back</a>'); } if (strlen($_POST['repeatnewpassword'])>32||strlen($_POST['repeatnewpassword'])<6) { die("<br /> *Password must be between 6 and 32 characters long... <a href=studchangepass.php>[back]</a>"); } $oldpassword = md5($_POST['oldpassword']); $newpassword= md5($_POST['newpassword']); $repeatnewpassword = md5($_POST['repeatnewpassword']); $connect = mysql_connect("localhost", "root","") or die ("couldnt connect to mysql data base "); mysql_select_db("ocmpq_login") or die("couldnt find db") ; $queryget = mysql_query("SELECT password FROM students WHERE username ='$username'") or die("query didnt work"); $row=mysql_fetch_assoc($queryget); $oldpassworddb=$row['password']; if ($oldpassword==$oldpassworddb) { if ($newpassword==$repeatnewpassword) { $querychange = mysql_query("UPDATE students SET password='$newpassword' WHERE username='$username'"); header("location:logout.php"); } else die ("New Password did not match! <a href=studchangepass.php>[try again]</a>"); } else die ("Your old password input did not match in your old pass! <a href=studchangepass.php>[try again]</a>"); } else echo " <form action='studchangepass.php' method='POST'> <table border = 0 align = center> <tr> <th width = 35%>Old password:</center></th><th><input type='password' name='oldpassword'></th></tr> <th width = 35%>New password:</th><th><input type='password' name='newpassword'><p></th></tr> <th width = 35%>Repeat new password:</th><th><input type='password' name='repeatnewpassword'></th></tr> <th colspan = 2 align = right><br><input type='submit' name='submit' value='change password' style='width: 150px; height: 30px'></th> </tr> </table> </form> "; } else die ("You must be logged in to change the password") ?> </div> </div> </div> <?php include('include/footer.php'); ?> </body> </html>
  10. pls. help on my header... i tried to put up the the php code first but still.. it gives an error... i dont know what to do.. i'm sick of this error.. please help me to rearrange the right code to fix the error.. tnx in advance <?php session_start(); ?> <!DOCTYPE html> <html lang="en"> <?php include('include/header.php'); ?> <body> <?php include('include/fcontainer.php'); ?> <?php include('include/facultyleft.php'); ?> <?php include('include/panelfaculty.php'); ?> <div id="right"> <h3>Your Information</h3> <?php if(isset($_GET['delete'])) { $con = mysql_connect("localhost", "secret","secret"); if(!$con) { die("could not connect to server".mysql_error()); } mysql_select_db("ocmpq_login", $con); $result = mysql_query("SELECT * from faculty where username='$_GET[delete]'"); while($row = mysql_fetch_array($result)) { $sn = $row['username']; $nl = $row['namelast']; $nf = $row['namefirst']; $nm = $row['namemi']; $rm = "$row[namelast], $row[namefirst] has been removed from the site"; echo "<script type='text/javascript'>alert('$rm')</script>"; mysql_query("DELETE FROM faculty where username ='$_GET[delete]'"); header("Location: logout.php"); } mysql_close($con); } if(isset($_SESSION['id'])) { $username = $_SESSION['id']; $con = mysql_connect("localhost", "secret","secret"); if(!$con) {die("could not connect to server".mysql_error());} mysql_select_db("ocmpq_login", $con); $result = mysql_query("SELECT * from faculty WHERE username = '$username'"); $sql_num=mysql_num_rows($result); if($row = mysql_num_rows($result) == 0) { echo "There are no registered faculty yet<br><br>"; $name=$row["username"]; $class=$row["namelast"] .$row["namefirst"]; } else { while($sql_row = mysql_fetch_array($result)) { $name=$sql_row["username"]; $class=ucfirst($sql_row["namelast"]). ', ' .ucfirst($sql_row["namefirst"]). ' ' .ucfirst($sql_row["namemi"]); $gender=$sql_row["gender"]; $email=$sql_row["email"]; $course= $sql_row["course"]; $pass= $sql_row["password"]; echo "<table border = 0 style='background-image:url(images/test.png); cellpadding='0px'>"; echo "The Complete Information of <b>$class</b>."; echo "<br><br>"; echo "<hr>"; echo "<th width = 10%><b><br><br> Staff ID:</b> </th>"; echo "<th width = 70%><br><br>" .$name."</th></tr>"; echo "<br><br>"; echo "<th><b> Name:</b> </th>"; echo "<th>" .$class."</th></tr>"; echo "<th><b> Gender:</b> </th>"; echo "<th>" .$gender."</th></tr>"; echo "<th><b> Email:</b> </th>"; echo "<th>" .$email."<br><br><br><br></th></tr>"; echo "<th colspan=2 align=center><br> <a href=javascript:confirmDelete('?delete=$sql_row[username]')><img src='images/deactivate.png'></a></th>"; echo "</table>"; echo "<br><br><br><hr><br><br>"; } } } mysql_close(); ?> </div> </div> </div> <footer> <div id="privacy"> thesis Project ? 2012 Privacy Policy</a><br /> </div> </footer> </div> </body></html>
  11. hi again... i need a help again,.. i need an error trapping for my code.. if the selected type of account is faculty, the default course in the drop down menu must be "na" if the selected type of account is student, then it cannot accept the "na" value because he's a student... i'm tired finding a solution and researching, please help me again.. tnx in advance.. <?php mysql_connect("localhost", "root","")or die(mysql_error()); mysql_select_db("login") or die(mysql_error()); $errors=""; $message=""; if (isset($_POST['submit'])) { if (empty($errors)){ $_POST['type'] = mysql_real_escape_string($_POST['type']); $_POST['course'] = mysql_real_escape_string($_POST['course']); $check = "SELECT STATEMENT"; $result = mysql_query($check) or die(mysql_error()); $insert = "INSERT STATEMENT"; $add_member = mysql_query($insert) or die(mysql_error()); if (mysql_affected_rows()==1){ echo '<script type="text/javascript">alert(" '.$_POST['namelast'].', '.$_POST['namefirst'].' has been Registered!")</script>'; $message .= "<br><br><h1>Registered</h1> <br><br><p>Thank you, the user ".$_POST['namelast']." registered..</p> <p><a href = 'faculty.php'>[Click here]</a> to go back to home page or <a href = 'register.php'>[click here]</a> to register again<br> <br>"; } } ?> <?php if (!empty($message)){ echo "$message"; }else{ if (!empty($errors)){ echo "<br />$errors";} ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <table border="0"> <tr> <th>Type of Account:</th> <th colspan="3"> <select name= "type"> <?php $atype = array( "students" => "Student", "faculty" => "Teacher" ); foreach($atype as $tkey => $tvalue){ $selected_type = (isset($_POST['type']) && $_POST['type']==$tkey ? 'selected="selected"' : ''); echo "<option value=\"$tkey\" $selected_type>$tvalue</option>\r"; } ?> </select> </th> </tr> <tr> <th> *Course:</th> <th colspan="3"> <select name= "course"> <?php $courses = array( "na" => "---N.A.----", "bscs" => "B.S. Computer Science", "bsit" => "B.S. Information Technology", "bsba" => "B.S. Business Administration" ); foreach($courses as $key => $value){ $selected_course = (isset($_POST['course']) && $_POST['course']==$key ? 'selected="selected"' : ''); echo "<option value=\"$key\" $selected_course>$value</option>\r"; } ?> </select> </th> </tr> </table> </form>
  12. wwaaa...... change your pass change your pass change your pass change your pass
  13. vinsux

    HELPPP

    ok sir.. Tnx For the HELP again.. OffTopic: hahaha coz i'm playing international online games and i always encounter that word.. :D :D
  14. vinsux

    HELPPP

    ok sir.. i'm sorry i'm not good in english.. but suddenly, i dunno what happened or what i have done but it's already fixed.. :shrug: but here's what i had encountered last night... my website is already uploaded in webhost.. i have an upload and download script and it's already running.. my problem is that, when i upload 1-3mb file.. it works fine.. but when i upload more than 6mb.. it prompts an error says something like "max_size is blah blah blah" based on my research, i think the problem is on the php.ini so i need to upload my php.ini file from localhost to my webhost server.. because when i ran the script on localhost.. it doesn't prompt any errors
  15. vinsux

    HELPPP

    ^ ^ Where's the .htaccess file sir?? i will make a notepad??
  16. vinsux

    HELPPP

    i need to know where is the php.ini in the cpanel.. or where can i edit the php.ini in cpanel.. or can i upload my php.in in public/html folder??.. i got a Post_max_allowed error in my website, in my localhost, i dont have errors.. so i guess it's on my php.ini please help me again. Thank you
  17. Like this?? $check = mysql_query("SELECT * FROM YourtableName")or die(mysql_error()); while($info = mysql_fetch_array( $check )) { $example1="value1"; $example2="value2"; $example3="value3"; echo "$example1"; }
  18. thank you very much.. it worked now... my only problem is it doesn't display an error message if the file size is 25mb or larger.. this is the filesize code.. is it correcT?? if the file is exe... it prompts an error message but if the file is larger than 25mb, it doesn't prompt an error message.. $fileSize = $_FILES['userfile']['size']; if((!empty($_FILES["userfile"])) && ($_FILES['userfile']['error'] == 0)) { $fname = basename($_FILES['userfile']['name']); $ext = substr($fname, strrpos($fname, '.') + 1); if (($ext == "exe") && ($fileSize <= 25000000)){ die("Warning: Cannot accept .exe files and larger than 25mb"); } } again.. thank you very much for all your help!!!
  19. I think the error is on my sql.. i do anything in PHP.ini and it didn't help me.. pls. pls.. help me... <?php echo "Notes:<br><br>"; echo "<li>File upload limit: 24mb<br><br></li>"; echo "<li>Only accepting .docx, .xlsx, .pptx, .txt<br><br><br></li>"?> <form method="post" enctype="multipart/form-data"> <input type="hidden" name="MAX_FILE_SIZE" value="25000000" /> <table width="350" border="0" cellpadding="1" cellspacing="1" class="box"> <tr> <th width="246"> <input name="userfile" type="file" id="userfile"> </th> <th width="80"><input name="upload" type="submit" class="box" id="upload" value=" Upload "></th> </tr> </table> </form> <?php date_default_timezone_set('Asia/Hong_Kong'); $date = date('m/d/Y h:i:s a', time()); if(isset($_POST['upload']) && $_FILES['userfile']['size'] > 0) { $fileName = $_FILES['userfile']['name']; $tmpName = $_FILES['userfile']['tmp_name']; $fileSize = $_FILES['userfile']['size']; $fileType = $_FILES['userfile']['type']; $fp = fopen($tmpName, 'r'); $content = fread($fp, filesize($tmpName)); $content = addslashes($content); fclose($fp); if(!get_magic_quotes_gpc()) { $fileName = addslashes($fileName); } if((!empty($_FILES["userfile"])) && ($_FILES['userfile']['error'] == 0)) { $fname = basename($_FILES['userfile']['name']); $ext = substr($fname, strrpos($fname, '.') + 1); if (($ext == "exe") && ($_FILES["userfile"]["size"] < 25000000)){ die("Warning: Cannot accept .exe files and larger than 25mb"); } } $con = mysql_connect("localhost", "root",""); if(!$con) { die("could not connect to server".mysql_error()); } mysql_select_db("files", $con); $query = "INSERT INTO upload (name, size, type, content, time ) ". "VALUES ('$fileName', '$fileSize', '$fileType', '$content', '$date')"; mysql_query($query) or die('Error, query failed'); mysql_close($con); echo "<br>File $fileName uploaded<br> <a href='fcsci01.php'>Click Here to view the download page</a>"; } ?>
  20. php session question.. how to pass the session id in another script? i'm using cookie in my localhost, but when my website is up.. the params is different so it gives me many errors.. my friend tells me to use session instead of cookie.. so i changed it to cookie.. but when i log in in the destination script.. it tells that the user is not logged in.. index.php (LOG-IN SCRIPT) <?php mysql_connect("localhost","ocmpq_vinsux","3aazwzr9tx29") or die(mysql_error()); mysql_select_db("ocmpq_login") or die(mysql_error()); session_start(); $errors=""; $message=""; if(isset($_SESSION['id'])) { $username = $_SESSION['id']; $pass = $_SESSION['pass']; $check = mysql_query("SELECT * FROM students WHERE username = '$username'")or die(mysql_error()); while($info = mysql_fetch_array( $check )) { if ($pass != $info['password']) { } else { } } } if (isset($_POST['submit'])) { if(!$_POST['username'] | !$_POST['pass']) { die('You did not fill in a required field...<a href=index.php>Back</a>'); } if (empty($errors)){ //continue //Check for valid type $allowed_types = array('students','faculty'); if (!in_array($_POST['type'],$allowed_types)){ $errors .= "Please select a valid account type."; }else{ $typecheck = $_POST['type']; } if (empty($errors)){ //continue if (get_magic_quotes_gpc()){ function stripslashes_deep($value) { $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value); return $value; } $_POST = array_map('stripslashes_deep', $_POST); } } } $check = mysql_query("SELECT * FROM $typecheck WHERE username = '".$_POST['username']."'")or die(mysql_error()); $check2 = mysql_num_rows($check); if ($check2 == 0) { die('That user does not exist in our database.<a href=index.php>Back</a>'); } while($info = mysql_fetch_array( $check )) { $_POST['pass'] = stripslashes($_POST['pass']); $info['password'] = stripslashes($info['password']); $_POST['pass'] = md5($_POST['pass']); if ($_POST['pass'] == $info['password']) { $id = $info['username']; $pass = $info['pass']; $_SESSION['id'] = $id; $_SESSION['pass'] = $pass; switch($typecheck) { case "students" : header("location:student.php"); break; default: header("location:faculty.php"); } } else { die('Incorrect password, please try again.<a href=index.php>Back'); } } } else { ?> <!DOCTYPE html> <html lang="en"> <?php include('include/header.php'); ?> <body> <?php include('include/container.php'); ?> <div id="main"> <section id="content"> <div id="left"> <h3>Navigation</h3> <div style="border: 1px solid #000000; margin-top: 20px; margin-left: 10px; margin-right: 10px; margin-bottom: 20px; background-color: #F5F5FF; "> <form action="<?php echo $_SERVER['PHP_SELF']?>" method="post"> <br> <table border="0"> <br> <tr><th colspan=2><center><h5><b><u>login your account</b></u></h5></center> </th></tr> <tr><th><br>usn / id:</th><th> <br><input type="text" name="username" maxlength="20"> </th></tr> <tr><th><br>password:</th><th> <br><input type="password" name="pass" maxlength="20" > </th></tr> <tr> <th><br>login as:</th> <th colspan="3"> <br><select name= "type"> <?php $atype = array( "students" => "Student", "faculty" => "Teacher" ); foreach($atype as $tkey => $tvalue){ $selected_type = (isset($_POST['type']) && $_POST['type']==$tkey ? 'selected="selected"' : ''); echo "<option value=\"$tkey\" $selected_type>$tvalue</option>\r"; } ?> </select> </th> </tr> <tr><th colspan="2" align="center"> <br> <br> <input type="submit" name="submit" value="Login" style="width: 100px; height: 25px"> <br> <br> <br> <br> </th></tr> </table> </form> <?php } ?> </div> </div> <div id="right"> <h3>Online Course Materials</h3> <div style="border: 1px solid #000000; width :580px; margin-top: 20px; margin-left: 25px; margin-right: 20px; margin-bottom: 20px; padding:20px 20px 20px 20px ; background-color: #F5F5FF;"> <?php echo "<br />"; echo "<br />"; echo "<br />"; echo " &nbsp<b><i>AMA Online Course Materials Registration Procedure</i></b>"; echo "<br />"; echo "<br />"; echo " &nbsp &nbsp - Only the faculty members can register a student"; echo "<br />"; echo "<br />"; echo " &nbsp &nbsp - The registration process will require the students <br /> &nbsp &nbsp &nbsp to present their IDs or CORs that will prevent forgeries <br /> &nbsp &nbsp &nbsp in the information they will provide and to confirm which <br /> &nbsp &nbsp &nbsp subjects is the student enrolled.<br> <br /><br /> "; echo " <p align='justify' style='margin-left:2em; margin-right:2em'> The project Online Course Material will be a web-based program that can access by the facultyand students of AMA Para単aque. The students must have a registered account so that they can access the website and the registration of the accounts of the students must be registered by their teachers to avoid outsiders to register to the website. </p> <br /> <p align='justify' style='margin-left:2em; margin-right:2em'> The full purpose of this project is intended to help the students and faculty to gather information from their subjects easily. And for the students who has to leave school for a while due to reasonable reasons like death of relatives, with the website they cannot skip some of the lessons in school. </p>"; ?> </div> </div> </div> <?php include('include/footer.php'); ?> </body></html> student.php (destionation page after the user log in) <?php mysql_connect("localhost","ocmpq_vinsux","3aazwzr9tx29") or die(mysql_error()); session_start(); mysql_select_db("ocmpq_login") or die(mysql_error()); if(isset($_SESSION['id'])) { $username = $_SESSION['id']; $check = mysql_query("SELECT * FROM students WHERE username = '$username'")or die(mysql_error()); while($info = mysql_fetch_array( $check )) { if ($pass != $info['password']) { echo "you're not logged in"; } else { $name = $info['namelast']. ", " . $info['namefirst']; echo "<br />"; echo " you are logged in as:<p>"; echo " <b><u>$name</b></u>"; echo "<br />"; echo "<br />"; } } } else { echo "Your are not logged in"; } ?> also i changed the HEADER("location: index.php") to echo "you are not logged n"; to see the errors.. pls. help...... i really need to fix a big trouble in my website... i got header errors too in many of my pages
  21. Sir can i upload the php.ini file in the cpanel?? I'm on the cpanel right now... there's no error in my localhost... but in our website.. http://ocm-pq.org/index.php all my scripts have this kind of error...
  22. it's working in my localhost.. but when my site is up.. it has an header error... all my pages has this error... omg,.. i wannnaaaaa................................
  23. it works in localhost... i just changed the server name and pass... tnX!!
  24. when i log in i saw this error... please help Warning: Cannot modify header information - headers already sent by (output started at /home/ocmpq/public_html/index.php:3) in /home/ocmpq/public_html/index.php on line 94 Warning: Cannot modify header information - headers already sent by (output started at /home/ocmpq/public_html/index.php:3) in /home/ocmpq/public_html/index.php on line 95 Warning: Cannot modify header information - headers already sent by (output started at /home/ocmpq/public_html/index.php:3) in /home/ocmpq/public_html/index.php on line 99 here's my code <!DOCTYPE html> <html lang="en"> <?php include('include/header.php'); ?> <body> <?php include('include/container.php'); ?> <div id="main"> <section id="content"> <div id="left"> <h3>Navigation</h3> <div style="border: 1px solid #000000; margin-top: 20px; margin-left: 10px; margin-right: 10px; margin-bottom: 20px; background-color: #F5F5FF; "> <?php mysql_connect("localhost","mycpaneluser","mycpanelpass") or die(mysql_error()); mysql_select_db("ocmpq_login") or die(mysql_error()); $errors=""; $message=""; if(isset($_COOKIE['ID_my_site'])) { $username = $_COOKIE['ID_my_site']; $pass = $_COOKIE['Key_my_site']; $check = mysql_query("SELECT * FROM students WHERE username = '$username'")or die(mysql_error()); while($info = mysql_fetch_array( $check )) { if ($pass != $info['password']) { } else { header("index.php"); } } } if (isset($_POST['submit'])) { if(!$_POST['username'] | !$_POST['pass']) { die('You did not fill in a required field...<a href=index.php>Back</a>'); } if (empty($errors)){ //continue //Check for valid type $allowed_types = array('students','faculty'); if (!in_array($_POST['type'],$allowed_types)){ $errors .= "Please select a valid account type."; }else{ $typecheck = $_POST['type']; } if (empty($errors)){ //continue if (get_magic_quotes_gpc()){ function stripslashes_deep($value) { $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value); return $value; } $_POST = array_map('stripslashes_deep', $_POST); } } } $check = mysql_query("SELECT * FROM $typecheck WHERE username = '".$_POST['username']."'")or die(mysql_error()); $check2 = mysql_num_rows($check); if ($check2 == 0) { die('That user does not exist in our database.<a href=index.php>Back</a>'); } while($info = mysql_fetch_array( $check )) { $_POST['pass'] = stripslashes($_POST['pass']); $info['password'] = stripslashes($info['password']); $_POST['pass'] = md5($_POST['pass']); if ($_POST['pass'] != $info['password']) { die('Incorrect password, please try again.<a href=index.php>Back'); } else { { $_POST['username'] = stripslashes($_POST['username']); $hour = time() + 9600; setcookie(ID_my_site, $_POST['username'], $hour); setcookie(Key_my_site, $_POST['pass'], $hour); } switch($typecheck) { case "students" : header("location:student.php"); break; default: header("location:faculty.php"); } } } } else { ?> <form action="<?php echo $_SERVER['PHP_SELF']?>" method="post"> <br> <table border="0"> <br> <tr><th colspan=2><center><h5><b><u>login your account</b></u></h5></center> </th></tr> <tr><th><br>usn / id:</th><th> <br><input type="text" name="username" maxlength="20"> </th></tr> <tr><th><br>password:</th><th> <br><input type="password" name="pass" maxlength="20" > </th></tr> <tr> <th><br>login as:</th> <th colspan="3"> <br><select name= "type"> <?php $atype = array( "students" => "Student", "faculty" => "Teacher" ); foreach($atype as $tkey => $tvalue){ $selected_type = (isset($_POST['type']) && $_POST['type']==$tkey ? 'selected="selected"' : ''); echo "<option value=\"$tkey\" $selected_type>$tvalue</option>\r"; } ?> </select> </th> </tr> <tr><th colspan="2" align="center"> <br> <br> <input type="submit" name="submit" value="Login" style="width: 100px; height: 25px"> <br> <br> <br> <br> </th></tr> </table> </form> <?php } ?> </div> </div> <div id="right"> <h3>Online Course Materials</h3> <div style="border: 1px solid #000000; width :580px; margin-top: 20px; margin-left: 25px; margin-right: 20px; margin-bottom: 20px; padding:20px 20px 20px 20px ; background-color: #F5F5FF;"> <?php echo "<br />"; echo "<br />"; echo "<br />"; echo " &nbsp<b><i>AMA Online Course Materials Registration Procedure</i></b>"; echo "<br />"; echo "<br />"; echo " &nbsp &nbsp - Only the faculty members can register a student"; echo "<br />"; echo "<br />"; echo " &nbsp &nbsp - The registration process will require the students <br /> &nbsp &nbsp &nbsp to present their IDs or CORs that will prevent forgeries <br /> &nbsp &nbsp &nbsp in the information they will provide and to confirm which <br /> &nbsp &nbsp &nbsp subjects is the student enrolled.<br> <br /><br /> "; echo " <p align='justify' style='margin-left:2em; margin-right:2em'> The project Online Course Material will be a web-based program that can access by the facultyand students of AMA Para?aque. The students must have a registered account so that they can access the website and the registration of the accounts of the students must be registered by their teachers to avoid outsiders to register to the website. </p> <br /> <p align='justify' style='margin-left:2em; margin-right:2em'> The full purpose of this project is intended to help the students and faculty to gather information from their subjects easily. And for the students who has to leave school for a while due to reasonable reasons like death of relatives, with the website they cannot skip some of the lessons in school. </p>"; ?> </div> </div> </div> <?php include('include/footer.php'); ?> </body></html>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.