I had tried that, but was missing the returning of 'false', and thus it was always submitting... I'm learning js and jQuery as I go on this project.Forrest wrote:Another solution is to use ajax to send the form post
I used jquery to select the form (you would need to add id="canmsgform" to the <form> statement to allow the selector to work), then overrode the submit functionality of the form. By returning false, the html submit is never performed. The end result is the form in submitted without having to refresh or reload the page. Because of this, you are never sent to the url sendcanmsg.
Thank you!!