Any one know's about a code in PHP that can add/edit/delete a profile of a student.

I create a xHTML FOR all i need is a PHP code please do help i really want to learn..

<div id="Eform1">
<h1>FILL UP HERE: </h1>
<form action="anotherpage.php" method="POST" id="form1">
<span class="pi">Personal Information: </span>
<div id="SY">
<td><p> Semester : </td><td><select name="semester" class="sem">
<option value="-">--</option>
<option value="1st sem">First Semester</option>
<option value="2nd sem">Second Semester</option>
</select><br /></td></p>

<tr><td><p>S.Y. : </td><td>
<input type="text" name="year1" size="5" class="yer1" /> To <input type="text" name="year2" size="5" class="yer2" /></p></td></tr>
</div> <!-- End of SY -->

<div id="personal-info">
<tr><td><p>Index Number: </td><td><input type="text" name="index" /><br /></td></tr>
<tr><td>LastName: </td><td><input type="text" name="lastname" /></td></tr>
<tr><td>FirstName: </td><td><input type="text" name="firstname" /></td></tr>
<tr><td>MiddleName: </td><td><input type="text" name="middlename" /><br /></td></tr>
<tr><td>Age: </td><td><input type="text" name="age" size="2" /></td>
<tr><td>Gender: </td><td><select name="gender">
<option value="-">--</option>
<option value="male">Male</option>
<option value="female">Female</option>
<tr><td>Status: </td><td><select name="status"><option value="-">--</option><option value="1">Single</option>
<option value="2">In a Relationship</option><option value="3">Married</option><option value="4">It's Complicated</option></select><br /></td></tr>
<tr><td>Course/Major: </td><td><input type="checkbox" name="major" value="major in multimedia and the internet" />Major in Multimedia and the Internet</td></tr>
<tr><td></td><td><input type="checkbox" name="major" value="Major in Computer Science/ Programming" />Major in Computer Science/ Programming<br /></td></tr>
<tr><td>Home Address: </td><td><input type="text" name="home" size="80" maxlength="150"/><br /></td></tr>
<tr><td>Tel./Mobile No: </td><td><input type="text" name="phone" /></td></tr>
<tr><td>Email Address: </td><td><input type="text" name="email" /><br/></td></tr>
<tr><td>Birthday: </td><td>Month: <select name="bmonth">
<option value="-">--</option>
<option value="1">Jan</option>
<option value="2">Feb</option>
<option value="3">Mar</option>
<option value="4">Apr</option>
<option value="5">May</option>
<option value="6">Jun</option>
<option value="7">Jul</option>
<option value="8">Aug</option>
<option value="9">Sep</option>
<option value="10">Oct</option>
<option value="11">Nov</option>
<option value="12">Dec</option>
Day: <select name="bdate">
<option value="-">--</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
Year: <input type="text" name="byear" size="2" /><br /></td></tr>
<tr><td>Contact Person: </td><td><input type="text" name="contact" /><br /></td></tr>
<tr><td>Relation: </td><td><input type="text" name="relation" /><br /></td></tr>
<tr><td>Contact Address: </td><td><input type="text" name="maddress" maxlength="150" size="80"/><br /></td></tr>
<tr><td>Contact No: </td><td><input type="text" name="contactNo" /></p><br/></td></tr>
<tr><td></td><td><input type="submit" /></td></tr>

</div> <!-- End Pi -->
</div> <!-- End EForm1 -->

Anyone can give me idea please.... im just trying to learn

Recommended Answers

All 2 Replies

Member Avatar for diafol

OK, learn this first:


OK, learn this first:


and i also suggest start learning php tutorial

u need to learn by searching not letin the others do work for ya

we will help ya with ur own code not with one u got!!

start now and look for post and get methods

good luck

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.