0
Submit button not working
New Here
,
/t5/coldfusion-discussions/submit-button-not-working/td-p/96527
Jun 08, 2006
Jun 08, 2006
Copy link to clipboard
Copied
I have a ColdFusion webpage that displays one of two submit
buttons, depending on logic. One of the button submits the form as
it should, the other does not. The page works on our Development
and Test webservers, and was working on the Production web server,
but now is not.
Both buttons do the same thing, which is submit the form. This is the code for the form header.
<form name="formname" action="webpagename.cfm" method="get">
Again, both submit buttons work on our Dev/Test servers, but one of the the buttons does not work on the Production server. Code for button not working:
<input name="Lock" type="submit" value="Approve & Lock"/>
<input name="Unlock" type="Submit" disabled="disabled" value="Unlock"/>
I think it must have something to do with the server, and not the page.
Any help is appreciated.
Both buttons do the same thing, which is submit the form. This is the code for the form header.
<form name="formname" action="webpagename.cfm" method="get">
Again, both submit buttons work on our Dev/Test servers, but one of the the buttons does not work on the Production server. Code for button not working:
<input name="Lock" type="submit" value="Approve & Lock"/>
<input name="Unlock" type="Submit" disabled="disabled" value="Unlock"/>
I think it must have something to do with the server, and not the page.
Any help is appreciated.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

/t5/coldfusion-discussions/submit-button-not-working/m-p/96528#M9487
Jun 08, 2006
Jun 08, 2006
Copy link to clipboard
Copied
It sounds like you may have some mal-formed HTML on the page.
I'd have
http://www.netmechanic.com/products/HTML_Toolbox_FreeSample.shtml
or some other service that validates HTML check it out. Since your
page is a ColdFusion page (.cfm), load it into your browser, do a
File > Save As and save it as a .htm file. Upload via FTP to a
public Web site and give the validation service the complete URL
where the page can be found.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/coldfusion-discussions/submit-button-not-working/m-p/96529#M9488
Jun 08, 2006
Jun 08, 2006
Copy link to clipboard
Copied
If the input is disabled, why would you expect it to do
anything?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
dkb123321
AUTHOR
New Here
,
/t5/coldfusion-discussions/submit-button-not-working/m-p/96530#M9489
Jun 08, 2006
Jun 08, 2006
Copy link to clipboard
Copied
Its the button that is 'enabled' that is not working.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

/t5/coldfusion-discussions/submit-button-not-working/m-p/96531#M9490
Jun 08, 2006
Jun 08, 2006
Copy link to clipboard
Copied
For what it's worth, the disabled syntax is wrong. It should
simply be DISABLED, rather than DISABLED="disabled". Check out
http://www.htmlhelp.com/reference/html40/forms/input.html
for comments about this attribute. They claim it is poorly
supported in browsers.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

/t5/coldfusion-discussions/submit-button-not-working/m-p/96532#M9491
Jun 08, 2006
Jun 08, 2006
Copy link to clipboard
Copied
For what it's worth, the disabled syntax is wrong. It should
simply be DISABLED, rather than DISABLED="disabled". Check out
http://www.htmlhelp.com/reference/html40/forms/input.html
for comments about this attribute. They claim it is poorly
supported in browsers.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/coldfusion-discussions/submit-button-not-working/m-p/96533#M9492
Jun 08, 2006
Jun 08, 2006
Copy link to clipboard
Copied
> For what it's worth, the disabled syntax is wrong. It
should simply be
> DISABLED, rather than DISABLED="disabled".
Maybe YOU should check out the XHTML specification.
http://www.w3.org/TR/xhtml1/#diffs
Section 4.5
--
Adam
> DISABLED, rather than DISABLED="disabled".
Maybe YOU should check out the XHTML specification.
http://www.w3.org/TR/xhtml1/#diffs
Section 4.5
--
Adam
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Engaged
,
/t5/coldfusion-discussions/submit-button-not-working/m-p/96534#M9493
Jun 08, 2006
Jun 08, 2006
Copy link to clipboard
Copied
When you say the button does not work, do you mean it
actually does not invoke a submission at all, or do you mean it
goes to the action page but nothing happens?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

/t5/coldfusion-discussions/submit-button-not-working/m-p/96535#M9494
Jun 09, 2006
Jun 09, 2006
Copy link to clipboard
Copied
If you want to code to W3C XHTML recommendations, be my
guest. For the rest of us, a bit of old fashion,
works-with-all-browsers HTML is just fine.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Participant
,
/t5/coldfusion-discussions/submit-button-not-working/m-p/96537#M9496
Jun 09, 2006
Jun 09, 2006
Copy link to clipboard
Copied
try taking out the second submit and seeing if for some
reason it is interferring. post the rest of the code and someone
should be able to help you... and Glen's question is also mine,
when you say it doesnt work, does it do nothing at all? click ->
nothing? or do you get an error?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
LATEST
/t5/coldfusion-discussions/submit-button-not-working/m-p/96538#M9497
Jun 12, 2006
Jun 12, 2006
Copy link to clipboard
Copied
> If you want to code to W3C XHTML recommendations, be my
guest. For the rest of us, a bit of old fashion,
works-with-all-browsers HTML is just fine.
Yeah, OK sunshine, whatever. The point was you're telling the OP his
mark-up is bung when in fact it's not.
Using non-shorted attribute/value pairings for the likes of disabled,
checked, selected, etc is just as valid in HTML as it is in XHTML, btw. I
mentyioned the XHTML spec because it's just more likely that the OP is
going for XHTML compliant mark-up (incidenally, you're the first person
I've ever known to not see that as a GOOD thing), given the code snippets
provided.
--
Adam
Yeah, OK sunshine, whatever. The point was you're telling the OP his
mark-up is bung when in fact it's not.
Using non-shorted attribute/value pairings for the likes of disabled,
checked, selected, etc is just as valid in HTML as it is in XHTML, btw. I
mentyioned the XHTML spec because it's just more likely that the OP is
going for XHTML compliant mark-up (incidenally, you're the first person
I've ever known to not see that as a GOOD thing), given the code snippets
provided.
--
Adam
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
/t5/coldfusion-discussions/submit-button-not-working/m-p/96536#M9495
Jun 09, 2006
Jun 09, 2006
Copy link to clipboard
Copied
Try two things - Change the "name" of the submit button from
"Lock" to something else. also remove the disable attribute, i dont
why u're using it.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

