Multiple Forms in one page

Ask a Question related to Coldfusion - Getting Started, Design and Development.

  1. #1

    Default Multiple Forms in one page

    Is there any way to have multiple forms in one page without having the forced
    space between the submit buttons that each form has?

    In other words, I want my submit buttonsto be right under each other without
    the gap between them which is automatically generated between each form.

    mohadi Guest

  2. Similar Questions and Discussions

    1. Advanced OOP: Best OO design for rendering multiple page types to multiple devices
      Hoping to get some ideas from more experienced hands regarding the best way to use object-oriented design to assist my development of a content...
    2. Multiple forms on one page
      I am trying to put together a stripped-down online order form that allows a user to enter quantities ordered for a bunch of products, as well as...
    3. [PHP] multiple FORMS on same page problem.
      I am creating a page with 2 buttons. One which will refresh the page and the other that will go to another page. My problem that I need to put all...
    4. How to include multiple <forms> on one ASP.NET page
      Hi, I need to create an ASPX page that includes both traditional HTML Forms (which are submitted to a third-party site like a travel booking...
    5. problem with have multiple subjects appear on the web page in multiple lines
      Hello, group I have got this problem, hoping someone can help me to figure it out what is wrong. I have some fields in the database:...
  3. #2

    Default Re: Multiple Forms in one page

    Is the second form going to have any input fields? Where are they going to go if the 2nd submit button is right under the first submit button?


    Dan Bracuk Guest

  4. #3

    Default Re: Multiple Forms in one page

    None of the forms have any input fields. They all have hidden fields that the users don't need to see which is passed to the action page.
    mohadi Guest

  5. #4

    Default Re: Multiple Forms in one page

    Then how much white space are we talking about anyway? I have a few apps with
    something similar, and I am able to fit both buttons into a td tag. Of course
    mine are side by each.

    Originally posted by: mohadi
    None of the forms have any input fields. They all have hidden fields that the
    users don't need to see which is passed to the action page.



    Dan Bracuk Guest

  6. #5

    Default Re: Multiple Forms in one page

    Create your 3 forms (with names in the tag) and place the 3 button outside of
    any form. into the button field, place some javascript to submit the form.

    <form name="form1" action="action1.cfm">
    ...
    </form>
    <form name="form2" action="action2.cfm">
    ...
    </form>
    <form name="form3" action="action3.cfm">
    ...
    </form>
    <input type="button" onclick"javascript: document.form1.submit();">
    <input type="button" onclick"javascript: document.form2.submit();">
    <input type="button" onclick"javascript: document.form3.submit();">

    babyloon00 Guest

  7. #6

    Default Re: Multiple Forms in one page

    Thanks. This is the solution I was looking for.:)
    mohadi Guest

  8. #7

    Default Re: Multiple Forms in one page

    Instead of tricks, you can just do the stuff with simple css. It's not the 90's
    anymore, you know? :)

    Warp your forms inside divs, specifying the size.

    <style type="text/css">
    .formdiv, .submitbutton {height:24px}
    </style>
    <cfoutput>
    <cfloop from="1" to="3" index="i">
    <div class="formdiv">
    <form name="form#i#" id="form#i#" method="post" action="">
    <input type="submit" class="submitbutton">
    </form>
    </div>
    </cfloop>
    </cfoutput>

    (code not checked, typed online - may contain errors)

    Fernis Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139