Form Tag in HTML

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manishkumarjn
    New Member
    • Oct 2006
    • 1

    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="searchB ook.jsp">
    <td><input type="text" name="searchBoo kID"></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>
    Last edited by manishkumarjn; Nov 7 '06, 03:56 AM. Reason: Forgot Something
  • kestrel
    Recognized Expert Top Contributor
    • Jul 2006
    • 1071

    #2
    ive never tried a form inside another form.
    but i dont think it would work out too well

    Comment

    • billkirim
      New Member
      • Nov 2006
      • 25

      #3
      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>

      Comment

      • billkirim
        New Member
        • Nov 2006
        • 25

        #4
        <body>
        <form action="searchB ook.jsp">
        <table border="1">
        <tr>
        <td>Enter Book Name :</td>
        <td><input type="text" name="searchBoo kID"></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>

        Comment

        • kestrel
          Recognized Expert Top Contributor
          • Jul 2006
          • 1071

          #5
          yeah, thats good...
          you dont need a form inside another, doesnt accomplish anything but confusion

          Comment

          • webmasterlokesh
            New Member
            • Nov 2006
            • 2

            #6
            can u he;p me in my problem. plz its urgent for me.

            Comment

            Working...