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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 123
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 99
  • Total: 99

Overlow problem with PHP article.

Started by nokonium, January 20, 2007, 04:19:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nokonium

I am trying to put a large php script into an article, 1080 rows. I have put it into a <div></div> to no avail. After I save it, this is what the Article editor looks like. The code has overflowed the text box into the editor.


Lesmond

Would you like to give me the code and I will test it on my site for you :)

jacortina

I bet that last $t_out = before it goes haywire is a closing textarea tag.

So, you're closing the editor textarea.

Do it this way:
$t_out .= '</text'.'area>'

Nokonium

Thanks  :)

It works Fine as a stand alone (pair of) file and the contact form works, I was trying to put it into an article to see if I could get the form, with verification, to load in the centre space. The formmailer.php file is the one I was fiddling with and the syntax is all OK according to my checker.

I have put both files into a zip, and given it a txt extension, you'll need to rename it. Please only use the first recipient in the drop down as that will come to me.

Nokonium

Quote from: J.A.Cortina on January 20, 2007, 04:43:11 PM
I bet that last $t_out = before it goes haywire is a closing textarea tag.

So, you're closing the editor textarea.

Do it this way:
$t_out .= '</text'.'area>'

I'll try that  :up:

Nokonium

I got this to pass the syntax check

$t_out .= '</text'.'area><div>';

But I still got the overflow.

jacortina

Well, I can't look at the attachment (it's not plain text to me). It's only 6k and you said this thing had over 1000 lines.

Are there any other closing textarea tags?

Nokonium

The attachment is a rar file, not a zip, that I changed to txtÃ,  :uglystupid2:

Lesmond

this is what I get when I open the att Rar! ÏÃ,s 
       Ã...“Ã,¬t Ã,? [  [  eÃ,®Ë†Vââ,¬Â¦463     formmailer-for-article.php Ã,°7XÍ Éââ,¬Å"Ã¥]ââ,¬ÂºÃƒÅ"Oââ,¬Â¦Pü3$â„¢ââ,¬Å¾ÃƒÂ¨ éÃÅ'Ã, ÂÂfíØæyÃ,¼Ã,»Ã,¿'ââ,¬ËœÃƒÅ½Ã¢â,¬Â¹$ncnYfà}ßyrÃ,Ã,´ââ,¬Â¢U>Ã,¸ôï3yåç2Õ*Ã,ªTÃ,ºÃ©*sâââ,¬Â¹ÃƒÂ¸N~üââ,¬Â¢$Ã...¡Ã,Â¥KÃ... JÃ...¾ââ,¬Â°ÃƒÂ¨zßÃ,¦Ã,¸f-fëfkZÃ,½Ã®Ã˜ââ,¬ÂºVcK4ÕæÃ,®Ã“jÃ,²ÃÅ"éùBe*FâÃÅ'<LÃ,¬n7Ã,·gÃ,½
ÞÃ,¾Ã,³9ZË7Ã,°Ã,¶owââ,¬Â Ã...½Ã,® Æ’mtââ,¬Â¦[ZÑÃ,¬sg/Þp.Ã,6Ãâ€"[o
NÃ,¿ââ,¬â€Ã,¨Ã,£i[Ã...½7iÈÃ,¯\^Ã,ââ,¬â€œ0R
õÃ...“Êjââ,¬Å"E Ð>ââ,¬Â¦Ã,¼ââ,¬Â Ã¢â,¬Â  kAÃ,¯ââ,¬Â¦!ÉwÃ,¼åaÿÃ,º8 Ã,¸Ã,¢Ãâ€"ðé™W 2ërÃ,ºeˆêöQÃ,¼Ã,ȉâ,¬Â¡ÃƒÂ¢xÃ,µÃ®eÃ,³Ã,k !Ã,´
ââ,¬Â¡)ÃÅ"ø$äËjÐî?Ã¥Ã,¾xöxxÍÃ,¿Ã,¹Ã•pqîïïqwÃ,¬9gÃ,¼5Ã,¶Ã,·x7koqÆÁÃ,Ã...½Ã»Ã,¹Ã”1ÿÊ:sÃ,ª=ãÒóÎXwÃ,¤ÃµÑÃ... Ã»yJøââ,¬Å¡Ã,©Æ’Ã,±üZÍââ,¬Å"ùÃ,±Ãâ€"O@aÃ,µúêÏÃÅ'Ã,¥ââ,¬ÂºÃ,³Fââ,¬Â°Ã¢â,¬Â¹

jacortina


This website is proudly hosted on Crocweb Cloud Website Hosting.