Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 39

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 16.02.2005, 10:00   #1 (permalink)
Baby Mamber
 
Join Date: Feb 2005
Posts: 1
vcetinick is on a distinguished road
Default mosgetparam strips html tags

Hi all,

Im trying to save the html content of a textarea field from a webpage and the default behaviour is of mosgetparam is to strip the html tag definitions. The idea is that a person can write up a webpage then copy and paste the html code into the page which then saves the html content to disk where it can be used later to display on another section of the website. But if you enter say

<p>This is stuff</p>

into the textarea, and submit the form

mosgetparam will read

This is stuff

only and not the tags.

I've read somewhere that they have changed the default behaviour of the mosgetparam function to disallow html tags in the content, but is there any way I can force it not to, or go arround it so i can read in the tags.


Cheers
VC
vcetinick is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 17.02.2005, 01:22   #2 (permalink)
Baby Mamber
 
Join Date: Oct 2004
Posts: 1
keithorama is on a distinguished road
Default Re: mosgetparam strips html tags

hey,

I was caught by this recently. mosGetParam stripping tags is somewhat surprising behavior. to turn it off you need to pass an extra flag.

Code:
$value = mosGetParam( $_REQUEST, $key, $default, _MOS_ALLOWHTML);
it is worth looking at the mosGetParam code in includes/mambo.php to see how it works. another interesting fact is that it does not touch subarrays of REQUEST, POST, etc. so when you are retrieving a param that is an array, you need to run mosGetParam to extract its values, in order to be consistent.

Code:
// get the first value of options[]
$array = mosGetParam( $_REQUEST, "options" )
$option0 = mosGetParam( $array, 0)
hope this helps,
keith
keithorama is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADS - Tags :: Heilbar? NoVeK Smalltalk 11 01.12.2004 00:44
HTML tags in page title DocBrown Mambo 4.5.1 'How Do I' Questions 0 28.09.2004 17:28
Umwandlung von HTML tags in Grossbuchstaben osprofi Mambo 4.5 Allgemein 5 29.08.2004 13:35
How Do I Make HTML content? Or how do I link to a new page inside the parent window? 00Sniper Mambo 4.5 'How Do I' Questions 2 13.08.2004 15:27
HTML tags in the newsflash/feed khklo Mambo 4.5 Bugs 0 29.05.2004 22:45


All times are GMT +2. The time now is 15:12.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.