473,396 Members | 1,929 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,396 software developers and data experts.

Form Tag in HTML

Can we have one form within another form.....Just tell me whether the following code is possible....I tried doing it but failed...plz provide a solution.....
<body>
<form action="mypage.jsp">
<table border="1">
<tr>
<td>Enter Book Name :</td>
<form action="searchBook.jsp">
<td><input type="text" name="searchBookID"></td>
<td><input type="Submit" name="Submit" value="Search"></td>
</form>
</tr>
</table>
<table border="1">
<tr>
<td>Book Name :</td>
<td><input type="text" name="BookID"></td>
<td>Publisher Name :</td>
<td><input type="text" name="publisher"></td>
<td><input type="Submit" name="Submit" value="Update"></td>
</tr>
</table>
</form>
</body>
Nov 7 '06 #1
5 1989
kestrel
1,071 Expert 1GB
ive never tried a form inside another form.
but i dont think it would work out too well
Nov 7 '06 #2
Nope..
You will have problems with the submit buttons.. they will submit the values to your fisrt <form>..
Try closing the first form and then open the second..

<form action="What to you want">
<input type="submit">
</form>

<form action="second url">
<input type="submit">
</form>
Nov 7 '06 #3
<body>
<form action="searchBook.jsp">
<table border="1">
<tr>
<td>Enter Book Name :</td>
<td><input type="text" name="searchBookID"></td>
<td><input type="Submit" name="Submit" value="Search"></td>
</tr>
</table>
</form>
<form action="mypage.jsp">
<table border="1">
<tr>
<td>Book Name :</td>
<td><input type="text" name="BookID"></td>
<td>Publisher Name :</td>
<td><input type="text" name="publisher"></td>
<td><input type="Submit" name="Submit" value="Update"></td>
</tr>
</table>
</form>
</body>
Nov 7 '06 #4
kestrel
1,071 Expert 1GB
yeah, thats good...
you dont need a form inside another, doesnt accomplish anything but confusion
Nov 8 '06 #5
can u he;p me in my problem. plz its urgent for me.
Nov 9 '06 #6

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

Similar topics

3
by: John | last post by:
Dear all, It been more than 3 days I am trying to debug this program, I interpret it using activePerl and it is giving (perl -wc code_process.pl) no error syntax but when I put it online, change...
2
by: Halldór Ísak Gylfason | last post by:
In my application I have an iframe that is empty (and not visible) initially, however when a user presses a button a form is programmatically submitted and the target is set to the IFrame. I...
4
by: Stuart Perryman | last post by:
Hi, I have the following code which works just fine in IE6 but not in Firefox. It is an extract of several table rows each with an individual form. It is generated by php. <form...
4
by: Howard Jess | last post by:
In Opera 8.01 (Linux; Build 1204) and in Opera 7.54 (Windows XP; Build 3865), my form disappears from the HTML markup (below). To summarize: 1) In a <script> block in the <head> I create a form...
19
by: Coward 9 | last post by:
HI, I saw in an example hello.aspx, there is a <form tagbeing used like <form runat="server> I search all html tag references and could NOT find "runat" attributes for <formtag. which...
0
bmallett
by: bmallett | last post by:
First off, i would like to thank everyone for any and all help with this. That being said, I am having a problem retrieving/posting my dynamic form data. I have a form that has multiple options...
1
by: IframeLearner | last post by:
Hi , I am trying to upload a file from a parent.jsp using Iframes. From Parent page. I have to save Subject, Desc, File and file name. to upload the file i am using Iframe. I want the...
1
by: macintoshhondo | last post by:
Hi ! i am a newbie and dont know javascript much. what i really need is a simple javascript code that can insert number in the value section of the different forms from the one form. FORM 1:...
3
by: blackrunner | last post by:
ERROR in my Query?! ERROR: Element GESCHLECHT is undefined in FORM. i think everything ok. Maby somebody can help me here Element GESCHLECHT is undefined in FORM. The error occurred...
3
by: ibeehbk | last post by:
Hi. I have a form made in xhtml. I test via vbscript to make sure none of the fields are empty and properly formatted (ie email). All the regular fields work. However, I have two drop down menus...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.