Jump to content

PHP $_POST[Variable] issue


vamsee

Recommended Posts

Dear All,

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

Please see the code of the form page

[code]<!-- FORM PAGE -->

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

<!-- FORM PAGE -->[/code]

[b]ACTION PAGE CODE[/b]

[code]<!-- 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
SET
englishTitle = '".$title_en."',
cmsTextEnglish = '".$cmsTextEnglish."',
latestUpdated = NOW()
WHERE
cmsID = '$checkid'";

mysql_query($sql);
<!-- CODE -->
[/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
Link to comment
https://forums.phpfreaks.com/topic/19115-php-_postvariable-issue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.