<html>
<title>Student Registration(1.html) </title>
<body>
<form name="fin" action="2.php" Method="post">
<table>
<Caption> Student Registration </Caption>
<tr>
<td>
Student Name: <input type='text' name='Sname' />
</td></tr>
<tr>
<td>
Student id: <input type='number' name='Sid' />
</td></tr>
<tr>
<td>
Student Class: <input type='text' name='Sclass' />
</td></tr>
<tr>
<td>
<input type='submit' value='Next" />
</td></tr>
</table>
</form>
</body>
</html>
<!----
When ever user clicks on next page he/she will redirected to 2.php
at dat time i want to store all the form data in xml.
here 2.php code Follows:
------->
----------------------------------------------------------------------------------------------
<?php
?>
<html>
<title>Student Registration2 </title>
<body>
<form name="fin2" action="#" Method="post">
<table>
<Caption> Student Backgroun Details </Caption>
<tr>
<td>
Student Name: <input type='text' name='Sname' />
</td></tr>
<tr>
<td>
Father Name: <input type='number' name='Fname' />
</td></tr>
<tr>
<td>
Father OCupation: <input type='text' name='Foc' />
</td></tr>
<tr>
<td>
Permanent Address: <input type='text' name='Add' />
</td></tr>
<tr>
<td>
<input type='submit' value='Submit" />
</td></tr>
</table>
</form>
</body>
</html>
------------------------------------------------------------------------------------------
<!------
So wen ever user clicks Submit on 2page.here the registration completes.
At dis time i want to Retrive the Data of 1st page From Xml. & now I want to store all the data from (1st & 2nd page) in my database.
finally i need 2 things
1. how to store the data in xml.
2. how to fetch the saved data in xml
3.by doing 1 & 2 i want to insert all data in my database
------->
varma51 0 Newbie Poster
FakeTales
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.