Jump to content


PHP $_POST[Variable] issue

  • Please log in to reply
1 reply to this topic

#1 vamsee

  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 30 August 2006 - 09:48 AM

Dear All,

I am using fck editor embedded php coding for my content management system.

Please see the code of the form page

<!-- FORM PAGE -->

$oFCKeditor = new FCKeditor('cmsTextEnglish') ;
$oFCKeditor->BasePath = 'FCKeditor/';
$oFCKeditor->Value = "$dataRow->cmsTextEnglish";
$oFCKeditor->Create() ;

<!-- FORM PAGE -->


<!-- CODE -->

$cmsTextEnglish = $_POST['cmsTextEnglish'] ; 
$cmsTextGreek = $_POST['cmsTextGreek']; 
$title_en = $_POST['title_en']; 
$title_gr = $_POST['title_gr']; 
$lang = $_POST['lang']; 
$checkid = $_POST['checkid'];

// update query for updating the content in to the content table
$sql = "UPDATE cms
englishTitle = '".$title_en."', 
cmsTextEnglish = '".$cmsTextEnglish."', 
latestUpdated = NOW()
cmsID = '$checkid'";

<!-- CODE -->
My Problem is if the formatting or the text in the fckeditor field is big [large] then the text does not get updated. Do you think the the post variable is getting cutoff after passing the values or is it the problem of mysql database. I dont see any chnages even I submit the form in the database.

For more information I made cmsTextEnglish field name as text datatype in Mysql.

I would be very glad if some one could help me with this.

Thanks in Advance,
Vamsee Vanaparthy

#2 ronverdonk

  • Members
  • PipPipPip
  • Advanced Member
  • 277 posts
  • LocationNetherlands

Posted 30 August 2006 - 10:51 AM

Would addslashes help here? As in

englishTitle = '".addslashes($title_en)."', 
cmsTextEnglish = '".addslashes($cmsTextEnglish)."',

Ronald  8)
RTFM is an almost extinct art form, it should be subsidized.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users