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: 94
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 103
  • Total: 103

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.

JPDeni

I'm not sure if this is a factor, but I thought I'd toss in my experience.

I found that if I create a php article and paste in text immediately before and save it -- create and save all in on one action -- I end up with all sorts of extraneous / characters. If, instead, I create the php article and don't put anything at all in it, then go back and put the code in, then the / characters aren't added and everything is fine.

Nokonium

I have the text editor off and I do not get the extra escape slashes, either way of pasting in.

Lesmond

Yes Thanks JP that works :)

How are you doing with your form nokonium? and can I ask what you want to do with it?

Nokonium

I have a basic contact form working on one of my public sites, I would like to A) Add Visual Verification and B) Get it to load as an article in the centre space.

If I use the code in a seperate file and use a link from the menu it will load and will send e-mails. The problem came when I tried to put it into an article.

Thanks to you two I now have code that will work, only I cannot get it to show. I have the title and whatever else is selected to display with the article but no contact form.

Nokonium

I've done it  ;D

iframe

Thanks for your help, I thought the overflow was a TP problem.

jacortina

No. The overflow part of things was just the nature (a limitation?) of textareas. They don't nest.

The edit box is iteslf a textarea, so when a browser parses code within it and finds a closing tag, it takes that as the close of the edit area (it doesn't track 'levels' of depth). So when coding for textareas, you have to be careful not to present the browser with a premature end.

Because the split/concatenated version doesn't present the actual end tag until the code runs, it works.

JPDeni posted a 'heads up' about this a while back:
http://www.tinyportal.net/index.php?topic=6384.0

Nokonium

That was from Jul 10, 06  ::)  ;)


I'd made the assumption that because it worked in a file and it was OK for syntax that it was all OK.

I've just started on the road of learning PHP, I thought that it was about time I knew what I was doing.

JPDeni

I forget about that issue all the time, even though I'm the one who brought it to the attention of the forum. I can't tell you how many times since then I've worked and worked trying to figure out why something wasn't working, only to finally remember that there was a textarea in there.

This website is proudly hosted on Crocweb Cloud Website Hosting.