0
Welcome Guest! Login
0 items Join Now

Do forms need to be on static pages?

    • 's Avatar

    Do forms need to be on static pages?

    Posted 18 years 1 month ago
    • I've just tried to submit the html code of a form done in dreamweaver into a normal content page using the HTML button.
      It seems to strip the <form> and </form> tags. No matter what I try - it keeps stripping those tags.
      Do I need to wrap forms within a static content page then?
      What I am doing wrong - Thanks.
  • Re: Do forms need to be on static pages?

    Posted 18 years 1 month ago
    • I make my forms in Dreamweaver, too, and if you have a textarea in your form you definitely can't use a WYSIWYG text editor because the editor itself is a textarea.

      What I do, to include the form in a content item, is install the kl_php mambot (which lets you use php code within a content item). Then I upload the form file to the server and in the content item type this:
      {kl_php}include("myform.html");{/kl_php}

      This will insert the contents of myform.html into the content item wherever this code is placed.
  • Re: Do forms need to be on static pages?

    Posted 18 years 1 month ago
    • 's Avatar

    Re: Do forms need to be on static pages?

    Posted 18 years 1 month ago
    • Thanks Donna.
      So I can't use the insert HTML option within the intro text box?
      It's kinda weird that it translates all the HTML code well - apart from the form tags.
      I think I'm still missing something.
    • Mack's Avatar
    • Mack
    • Elite Rocketeer
    • Posts: 535
    • Thanks: 0

    Re: Do forms need to be on static pages?

    Posted 18 years 1 month ago
    • Try this: (Assuming you are using Tinymce.)

      User Manager - Select yourself - change editor to NO WYSIWYG

      On your admin backend

      Site - Global settings - Default WYSIWYG Editor: Set to NO WYSIWYG Editor:

      Then go to Mambots - Site mambots - TinyMCE - click it

      On the right you will see an option box - Code Cleanup - Set it to NO

      Tinymce automatically strips out some html code by default, this will stop it from doing that. I have 2 admin user accounts, one with default no WYSIWYG and one with my editor. When I have to publish something special, like a form, I use the no WYSIWYG account.
    • 's Avatar

    Re: Do forms need to be on static pages?

    Posted 18 years 1 month ago
    • Fantastic! - thanks, that did it.
    • Last Edit: 18 years 3 weeks ago by .

Time to create page: 0.054 seconds