I have a client's site setup with a very simple form: username and password. It simply posts (securely) the info to a remote site where it logs the user in and they can go from there. It's basically a duplicate of what the third party has on their site; makes it a bit more seamless.
I inserted the form via the HTML option and it was there and working just fine...until I upgraded SS (v.2.3.3). Now for some reason the form will not stay when I 'INSERT' the HTML data back into the working page draft - it's getting stripped out.
Why is this? How can I get it working as it was?!?
The CMS seems to eat all <form> elements. I'd guess that you'll either have to build the form as explained in [url=http://doc.silverstripe.com/doku.php?id=tutorial:3-forms]Tutorial 3[/url] or maybe just create a special page for that form and include the HTML in the .ss template.
I've found "form" to exist in tiny_mce_src.js, and added "|name" to the list, as "method" and "action" were already there. STILL my insertion is stripped completely, after logging out and back in before inserting code. This did not happen in the previous version, from last December's installation.
Why is it stripping valid HTML without warning? Must I build code to get around an editor that thinks it knows more than I do?
What's wrong with:
<form name="PrePage" method = "post" action = "https://BlahBlahBlah/Payment.aspx"> <input type = "hidden" name = "LinkId" value ="3e1fc7ec-fb5f-4677-bfa6-de" /> <input type = "submit" value = "Cynthia's Payment" /> </form>