This is SO strange.
I can make text changes to my Comment Form template (using the Forum template set), but as soon as I change the Submit button from:
<input type="submit" accesskey="s" name="post" id="comment-submit" value="Submit" />
to:
<input type="image" src="http://takezer0.com/ui/images/button-submit.jpg" accesskey="s" name="post" id="comment-submit" value="Submit" />
…my session ends and I get logged out. I’m basically just changing it from a “submit” to an “image” which works everywhere else I do this. But as soon as I save my template, refresh the page with my comment form on it, Movable Type logs me out (both in the forum where I’m implementing this, and in the admin). In fact, my session on this forum was killed too.
What the heck is going on? This is about as odd as computer issues get.
Reported on Movable Type 4.2
You also changed the name and the id of the element, and Movable Type uses a lot of JavaScript. It's possible that you have confused it by changing those attributes and not making sure that there weren't events attached to that original type of form object before changing it. I would suggest doing that and checking for JavaScript errors. Also, take out that value attribute since you don't need that to submit a form using an image.
I had a similar situation, I did a Firefox restart and after that things went back to normal... I wasn't changing this submit link though ;)
I had a similar situation, I did a Firefox restart and after that things went back to normal... I wasn't changing this submit link though ;)
"Modified form button names.
MT uses the names of the Post, Previews and (now in MT4) Reply buttons to know what mode to process the comment being submitted. Some users will understandably want to rename these buttons and will change the value (the label) AND the name. You need to keep those name or make addition arrangements to submit this information with each comment using another hidden variable or a javascript." from here http://appnel.com/code/log/2007/09/customizing-mt4-comment-forms