Skip to main content
Participant
June 8, 2006
Question

Submit button not working

  • June 8, 2006
  • 4 replies
  • 1450 views
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.
    This topic has been closed for replies.

    4 replies

    Participant
    June 9, 2006
    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.
    dkb123321Author
    Participant
    June 8, 2006
    Its the button that is 'enabled' that is not working.
    June 8, 2006
    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.
    Inspiring
    June 8, 2006
    If the input is disabled, why would you expect it to do anything?
    June 8, 2006
    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.