View Single Post
Old 2005-03-25, 05:02 PM   #12
venturi
No offence Apu, but when they were handing out religions you must have been out taking a whizz
 
Join Date: Apr 2003
Location: An Oasis atop a High Desert Mesa
Posts: 282
Send a message via ICQ to venturi
Quote:
Originally Posted by Useless Warrior
Ok, here's the thingy. I used to be able to insert HTML tables and such into my form so that it would insert it into my database and eventually get pulled onto my templates. Now I can't. I can submit the brackets <> by themselves without space between them without a problem, but if a character or space is separates them, I get an Internal Server Error.

Could this be some software variable on my server that is causing this? I'm thinking that this error started when I moved from my virtual account onto a dedicated server. Perhaps something on the php.ini?

Help.........................
When you are processing the form data to insert it into your database use:
htmlentities($_POST['form_field'], ENT_QUOTES);
When you are pulling the data out of the database to insert into your templates use:
html_entity_decode($query->field, ENT_QUOTES); // assuming you are using mysql_fetch_object() to retrieve your query data.
venturi is offline   Reply With Quote