Hello there,
i have a problem with my php page. i have a form and different tabs on that. o the click of each tab, user will give his information in the text boxes. and for that i need a comman submit button which will show on each tab and each div tag will show that comman submit button. and also need that insert query will run only once for all the div tags or tabs.
here is my code::
[HTML]<FORM NAME="information" METHOD="POST" onSubmit="return checkvalidity();" ACTION="" >
<table width="100%">
<tr>
<td >
<br>
<? include("../include/leftcol.php"); ?>
</td>
</tr>
<!--<h3 align="center"><strong><font color="#FFFFFF" size="2">Create User</font> </strong></h3> -->
<tr>
<td>
<table align="center" width="750" >
<tr>
<td width="750">
<table width="750" border="0" frame="above" cellpadding="3" cellspacing="3" bgcolor="#CCCCCC" align="center" height="20" >
<tr >
<td width="247" bgColor="silver" id="tab1" ><a href="#" id=personalinfo onClick="javascript:personalinfo();"> <FONT color ="black" size="1">Personal info </FONT></a></td>
<td width="247" bgColor="silver" ><a href="#" id=address onClick="javascript:address();" > <FONT color ="black" size="1">Address</FONT></a></td>
<td width="247" bgColor="silver"><a href="#" id=contact onClick="javascript:contactNo();"><FONT color ="black" size="1">Contact No</FONT></a></td>
</tr>
</table>
<div id=userinfo1 style="visibility:visible; position:absolute;">
<table align="center" class="tablemenu" bgcolor="#CCCCCC">
<tr height="10px">
<td width="107"><font size="1">User Name:</font></td>
<td width="630">
<input type="text" name="uname" ></input>
</td>
</tr>
<tr>
<td width="107" ><font size="1">First Name:</font></td>
<td width="630"><input type="text" name="fname" ></input>
</td>
</tr>
<tr>
<td width="107" ><font size="1">Last Name:</font></td>
<td width="630"><input type="text" name="lname" ></input>
</td>
</tr>
<tr>
<td width="107" ><font size="1">Password:</font></td>
<td width="630"><input type="password" name="password" ></input>
</td>
</tr>
<tr>
<td width="107" ><font size="1">Comp Name:</font></td>
<td width="630"><input type="text" name="compname"></input>
</td>
</tr>
<tr>
<td width="107" ><font size="1">Division:</font></td>
<td width="630"><input type="text" name="division"></input>
</td>
</tr>
</table>
</div>
<div id=userinfo2 style="visibility:hidden; position:absolute;">
<table align="center" class="tablemenu" bgcolor="#CCCCCC">
<tr height="10px">
<td width="15%"><font size="1">Street</font></td>
<td width="85%">
<input name="street" type="text" ></input>
</td>
</tr>
<tr height="10px">
<td width="15%"><font size="1">City</font></td>
<td width="85%">
<input name="city" type="text" ></input>
</td>
</tr>
<tr height="10px">
<td width="15%"><font size="1">State</font></td>
<td width="85%">
<input name="state" type="text" ></input>
</td>
</tr>
<tr height="10px">
<td width="15%"><font size="1">Postal Code</font></td>
<td width="85%">
<input name="postalcode" type="text" ></input>
</td>
</tr>
</table>
</div>
<div id=userinfo3 style="visibility:hidden; position:absolute;">
<table align="center" class="tablemenu" bgcolor="#CCCCCC">
<tr height="10px">
<td width="15%"><font size="1">Email Id</font></td>
<td width="85%">
<input type="text" name="fax"></input>
</td>
</tr>
<tr height="10px">
<td width="15%"><font size="1">Phone No</font></td>
<td>
<input type="text" name="fax"></input>
</td>
</tr>
<tr height="10px">
<td width="15%"><font size="1">Fax</font></td>
<td>
<input type="text" name="fax"></input>
</td>
</tr>
<tr height="10px">
<td width="15%"><font size="1">Mobile Phone</font></td>
<td>
<input type="text" name="fax"></input>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div align="left" style="position:fixed; visibility:visible; margin-top:164px;">
<table align="center" bgcolor="#CCCCCC" width="750">
<tr>
<td>
<input align="left" type="submit" value="submit" name="submit"></input>
</td>
</tr>
</table>
</div>
</FORM>[/HTML]