One Hat Cyber Team
Your IP :
216.73.216.84
Server IP :
50.6.229.107
Server :
Linux server.hostburly.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
andjemzt
/
nportal.andjemztech.com
/
examAdmin
/
Edit File:
add_school.php
<? include("inc/header.php"); ?> <script type="text/javascript"> function validate(form1){ if(document.form1.school_name.value=='') { alert("Please fill in school name"); return false; } if(document.form1.state.value=='') { alert("Please select state"); return false; } if(document.form1.branch.value=='') { alert("Please select a branch"); return false; } } </script> <form name="form1" method="post" onSubmit="return validate(form1);" action="add_school2.php"> <table border="0" cellpadding="5" cellspacing="0"> <tr> <td>Name of School</td> <td><input type="text" name="school_name" size="45" /></td> </tr> <tr> <td>State</td> <td><select name="state"> <option value="">Select State</option> <? $sql="SELECT * FROM state"; $result=mysql_query($sql); while ($row=mysql_fetch_array($result)){ extract($row); $stateid=$row['stateid']; $state_name=$row['state_name']; echo "<option value=$stateid>$state_name</option>"; } ?></select> </td> </tr> <tr> <td>Branch</td> <td><select name="branch"> <option value="">Select Branch</option> <? $q="SELECT * FROM branch"; $rs=mysql_query($q); $b_count=mysql_num_rows($rs); while ($row2=mysql_fetch_array($rs)){ extract($row); $branchid=$row2['branchid']; $branch_name=$row2['branch_name']; echo "<option value=$branchid>$branch_name</option>"; } ?></select> </td> </tr> <tr> <td colspan="2"><input type="submit" name="submit" value="Add School" /> </table> </form> <? include("inc/footer.php"); ?>
Simpan