file management php code in xml




<html>
<head>
<style>
.error {color: #FF0000;}
</style>
</head>
<body>

<form method="post" action="action.php">
<div>
<p>Department:</p>
Computer<input type="Checkbox" name="computer" value="computer"/>
IT <input type="Checkbox" name="it" value="it"/>
Mechanical<input type="Checkbox"name="mechanical"value="mechanical"/>
Electrical<input type="Checkbox"name="electrical" value="electrical"/>
Civil <input type="Checkbox" name="civil" value="civil"/>
EnTC <input type="Checkbox" name="entc" value="entc"/>
</div>
<p>
Title: <input type="text" id="name" name="title"/><br>
</p>
<p>
Year: <input type="text" id="name" name="year"/><br>
</p>
<p>
Date: <input type="text" id="name" name="date"/><br>
</p>

Description: <br><textarea name="description" rows="5" cols="40"></textarea>
<br><br>
<input type="submit" name="submit" value="submit">

</form>
</body>
</html>


this is normal form code ... Now,i have to make php code in action.php such that the checkbox clicked value will edit corresponding xml file 15/12/2014 SE Computer TimeTable Mr.Nilesh Sonawne announces new timetable http://ift.tt/1FLVSXW



<notice>
<date>15/12/2014</date>
<title>SE Computer TimeTable</title>
<year>Mr.Nilesh Sonawne announces new timetable AGAIN</year>
<note>http://ift.tt/1FLVTLE;
</notice>

<notice>
<date>01/01/2014</date>
<title>Defaulters List</title>
<year>SE Computer below 50% attendance</year>
<note>http://ift.tt/1FLVTLG;
</notice>

<notice>
<date>16/06/2014</date>
<title>SE Computer TimeTable SEM 1</title>
<year>Mr.Nilesh Sonawne announces new timetable</year>
<note>http://ift.tt/1FbcA5u;
</notice>
</worldpopulation>


Help with this ..date submitted comes in date tag ... title submitted will come under title tag.. same for other fields ...


No comments:

Post a Comment