Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
mohadi #1
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
-
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... -
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... -
[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... -
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... -
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:... -
Dan Bracuk #2
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
-
mohadi #3
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
-
Dan Bracuk #4
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
-
babyloon00 #5
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
-
mohadi #6
Re: Multiple Forms in one page
Thanks. This is the solution I was looking for.:)
mohadi Guest
-
Fernis #7
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



Reply With Quote

