Start New Discussion Reply to this Discussion How to insert data in database using xml?
Hi am new to xml, can anyone explain to me how to insert data in database using xml?
I have my form below. I want to use xml to post the data. How can i do it? Please help
<table>
<form method="get" action="regist_pro.php" name="name" onsubmit='return chckemail();'>
<tr>
<td><label>First name</label></td>
<td><input type="text" name="fname"/></td>
<td><label>Last name</label></td>
<td><input type="text" name="lname"/></td>
</tr>
<tr></tr>
<tr></tr>
<tr>
<td><label>Email Address</label></td>
<td><input type="text" name="email" onblur="checkEmail(this.value);"/><div align="center" id="emailtxt"></div></td>
<td><label>Password</label></td>
<td><input type="password" name="password"/></td>
</tr>
<tr></tr>
<tr></tr>
<tr>
<td><label>Gender</label></td>
<td><select name="sex">
<option>Please select your gender.</option>
<option>Female</option>
<option>Male</option>
</select></td>
<td><label>Birthday</label></td>
<td><input type="date" name="date"/></td>
</tr>
<tr>
<td colspan='4' align='right'><input type="submit" name="submit" value="Submit" onclick="chckemail()" size='5'/></td>
<td align='right'><input type="reset" name="reset" value="Reset" size='5'/></td>
</tr>
</form>
</table>
techyworld
Posting Whiz in Training
200 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
© 2013 DaniWeb® LLC
Page rendered in 0.3262 seconds
using 2.72MB