473,402 Members | 2,064 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

need to put a comman submit button

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]
Nov 2 '07 #1
0 1285

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Matt | last post by:
I want to understand the difference between submit button and regular button: <input type="submit"> and <input type="button">. My understanding is that submit button will send the entire HTML form...
4
by: Sarah | last post by:
Hi all. I have a form, and several text and image links on it that should submit the form with different actions. I prepared a simple page with just the code that's not working. PROBLEM:...
2
by: Mike Button | last post by:
Hello all, I am really really desperate on what I should do, and I am asking for help from anyone in this newsgroup, here's the situation: I am creating a form that is being run on a server...
3
by: Adam | last post by:
Hey guys, I've decided to stop banging my head against the wall and just ask you guys for the answer. I can't seem to find it. I have a form in which I have multiple submit buttons; only, I'm...
5
by: rjames.clarke | last post by:
I have the following. $result=mysql_query($sql); $nrows=mysql_num_rows($result); for ($i=0;$i<$nrows;$i++) { $row_array=mysql_fetch_row($result); echo "<form name='testform'...
10
by: ljlolel | last post by:
So.. I have a form that submits to an ASP.net site made in C-sharp. The ASP site is not mine, i do not have the server side code. When I submit from my form by pressing the Submit button, I get...
2
by: wipit | last post by:
I need to process a HTML form in python. I'm using urllib2 and HTMLParser to handle the html. There are several steps I need to take to get to the specific page on the relevant site the first of...
0
by: =?Utf-8?B?QmFyYmFyYSBBbGRlcnRvbg==?= | last post by:
I'm having trouble working with a Summary Validation control. I need to click my submit button twice for the Summary to display when validation errors occur on the page. Background: My page...
6
by: Mark B | last post by:
I have a function that looks up a SQL table to see if a search term matches. It works fine but so far there are two things yet to work: 1) After entering a search term and pressing Enter, nothing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.