Board index   FAQ   Search  
Register  Login
Board index PHP PHP Scripts

<textarea> problem

Links for php scripts

Moderators: macek, egami, gesf

<textarea> problem

Postby nathanwebb6 » Wed Jul 16, 2003 3:24 pm

hey, i am designing a website where you can simply edit the content of webpages on the actual website in the administration. I made the script to change the contents of my contact page. The source for each page shows up in a textarea where you can change it. the only trouble is the actual contact page has a textbox in it.

The actual webpage source goes like this:

<br>Enter your letter below<br>
<textarea name="content">
</textarea>
</p>
<input type="submit" value="contact now">
</form>


when i edit it on my site, the source only goes this far:

<br>Enter your letter below<br>
<textarea name="content">

how can i sort this problem, because it is essential i solve this
nathanwebb6
New php-forum User
New php-forum User
 
Posts: 27
Joined: Sat Jul 05, 2003 5:08 pm
Location: england uk

Postby nathanwebb6 » Wed Jul 16, 2003 3:35 pm

ok,, i figured out what i need to do but i dont know how to. when code is submitted, and processed, i need all symbols like < to change to < etc.... how can i do this?
nathanwebb6
New php-forum User
New php-forum User
 
Posts: 27
Joined: Sat Jul 05, 2003 5:08 pm
Location: england uk

Postby swirlee » Wed Jul 16, 2003 4:51 pm

htmlspecialchars() will convert < to &lt;.
html_entity_decode() will convert &lt; to <.
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back


Return to PHP Scripts

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.