Hi, I am a ColdFusion newbie.
I am trying to use CF to process my email form and am having trouble with my error checking. Previously I had written a javascript function to check for required info and then submit the form if all info was present using the form.submit() method. This would then send the send the info to a CGI program.
All this worked perfectly until i changed the action to the CFM file. Now, no matter what, the form is always passed to the CFM file. My function is called and my message to fill in info displays but then continues on to the CFM file.
The form doesn't even have a submit button, just a plain button (type=button) with an onClick event.
Will i just have to rewite everything in CF?
I am trying to use CF to process my email form and am having trouble with my error checking. Previously I had written a javascript function to check for required info and then submit the form if all info was present using the form.submit() method. This would then send the send the info to a CGI program.
All this worked perfectly until i changed the action to the CFM file. Now, no matter what, the form is always passed to the CFM file. My function is called and my message to fill in info displays but then continues on to the CFM file.
The form doesn't even have a submit button, just a plain button (type=button) with an onClick event.
Will i just have to rewite everything in CF?