TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 319
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 170
  • Total: 171
  • @rjen

Forms not allowed in article editor?

Started by misjka, March 21, 2006, 09:06:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bloc

What if you name the send button something other than "submit" or "send"?

Elen

#11
On my form, the button is called "Apply to join..." and has never been called submit or send.  The page is at http://www.crimson-dragoonz.com/crimson/index.php?page=23

When I try and edit the article the following appears in the editable text area

QuoteCrimson Dragoonz Application Form
    <p>If you wish to join the Crimson Dragoonz please fill in the form below.</p>
   
<p>We will try to contact you about your application in-game as soon as possible
  however please leave a valid e-mail address so that we have an alternative means
  of contacting you. If your application is successful a forum account will be
  created for you using this e-mail address. Please complete all of the fields.</p>
       
  <p> </p>
        <form action="http://www.crimson-dragoonz.com/cgi-bin/apply.cgi" method="post">
            <input name="mail_sent" value="http://www.crimson-dragoonz.com/crimson/index.php?page=20" type="hidden">
         <input name="subject" value="Application To Join The Crimson Dragoonz" type="hidden">
         <p>Character Name: <input name="name" size="20" type="text"></p>
          <p>Email address: <input name="email" size="20" type="text"></p>
            <p>Class:
                <select name="class"><option selected="selected">Druid</option><option>Hunter</option><option>Mage</option><option>Paladin</option><option>Priest</option><option>Rogue</option><option>Warlock</option><option>Warrior</option></select></p>
            <p>Level: <input name="level" size="5" value="0" type="text"></p>
            <p>Previous/Current Guild(s)</p>
            <textarea name="guild" cols="40" rows="3">
         

The other fields from the form appear underneath the text area, as if they were part of the edit options followed by the proper edit options.  I can't do a screen shot as I'm at work :(

Edited to add: It's just occurred to me that the split occurs at the first </textarea> tag.  If I create a new form with no textarea fields it's fine and I can edit it.

misjka

Quotetag.  If I create a new form with no textarea fields it's fine and I can edit it.

Ahh, maybe this is the key to it all??

iowamf

Quote from: misjka on March 29, 2006, 05:48:03 AM
Quotetag.  If I create a new form with no textarea fields it's fine and I can edit it.
Ahh, maybe this is the key to it all??

I think the textarea is the key.

I was trying to create a php form using a textarea and I think the non WYSIWYG editor was "executing" my code the 2nd time I brought up the article in an edit window.

A work around is to never edit the article twice - if you have to change it delete it and start over. Hey, less than ideal - but this works.

misjka

OK... But is it possible to e.g. use the iframe tag in an article to include an external html document...? That way one maybe could store the form outside the cms/portal but still have it available for viewing within the portal.. Haven't tested that idea...

Elen

Personally, I would like to avoid an iFrame but I think it might be possible to have it as a PHP include?  The downside is that you wouldn't be able to edit it via the articles which is what i really need to be able to do :(

iowamf

#16
I think this is a temporary bug - I wouldn't design around it.

The only hassle (as I understand it) is that you can't use the existing editor to modify an existing PHP article with a form using a textarea.

You can always use an external editor and past paste the code into a new article each time you want a change.

misjka

Yeah, that doesn't sound too hard to accomplish... But, the thing is to remember this special treatment of those articles  :o - especially as it comes to articles that aren't modified for quite some while (I'm talking about several months, maybe up to a year or so)...

Simply hope this bug will disappear before the final TP release...

This website is proudly hosted on Crocweb Cloud Website Hosting.