Hi there,
very strange problem. I have FCK editor set up fine. Using PHP and saving to Database. If I type a small amount (say 10 lines) its works and saves fine. But If I type anymore either the "submit" button just doesn't work when you click it (no click noise, no loading), or I get a 404 error or it appears to save to the DB but then when I load the results the changes have not been saved. My code is as follows.
THE PAGE WITH FCK EDITOR ON:
<form action="do_texteditor.php" name="test" id="test" >
<br>
<input name="Submit" type="submit" id="Submit" value="Save Changes">
<label>
<input name="reset" type="reset" id="reset" value="Reset">
</label>
<span class="style2">(Resets changes made)</span>
</form>
PAGE WHICH SAVES THE HTML TO DATABASE:
WHAT'S GOING ON - I CAN'T SEEM TO FIGURE IT OUT!
This is for a client and it is starting to get embarassing!
All help appreciated.
Thanks
NevyNev
very strange problem. I have FCK editor set up fine. Using PHP and saving to Database. If I type a small amount (say 10 lines) its works and saves fine. But If I type anymore either the "submit" button just doesn't work when you click it (no click noise, no loading), or I get a 404 error or it appears to save to the DB but then when I load the results the changes have not been saved. My code is as follows.
THE PAGE WITH FCK EDITOR ON:
<? include("../FCKeditor/fckeditor.php") ; include('../configs/connectdb.php'); connectdb(); $page = $_GET['page']; $currenttext = "SELECT html FROM pages WHERE page = '$page'"; $currenttextres = mysql_query($currenttext, $conn) or die(mysql_error()); $text=mysql_fetch_array($currenttextres); ?>
<form action="do_texteditor.php" name="test" id="test" >
<? $text = $text['html']; $text = stripslashes($text); $oFCKeditor = new FCKeditor('FCKeditor1') ; $oFCKeditor->BasePath = '../FCKeditor/'; #$oFCKeditor->BasePath = '../../FCKeditor/'; $oFCKeditor->Value = $text; $oFCKeditor->Width = '546' ; $oFCKeditor->Height = '3000' ; $oFCKeditor->Create() ?>
<br>
<input name="thepage" type="hidden" value="<? echo "$page";?>">
<input name="Submit" type="submit" id="Submit" value="Save Changes">
<label>
<input name="reset" type="reset" id="reset" value="Reset">
</label>
<span class="style2">(Resets changes made)</span>
</form>
PAGE WHICH SAVES THE HTML TO DATABASE:
<?php
include('../configs/connectdb.php');
connectdb();
$html = $_GET[FCKeditor1];
$html = addslashes($html);
$updatetext = "UPDATE pages SET html='$html' WHERE page='$_GET[thepage]'";
$updatetextres = mysql_query($updatetext,$conn) or die(mysql_error());
if ($updatetextres == 1){
$display_block = "<P>The page has been updated.</p>";}
else { echo "Page modification failed. Please try again. If the problem persists contact the administrator." ;}
?>.......
WHAT'S GOING ON - I CAN'T SEEM TO FIGURE IT OUT!
This is for a client and it is starting to get embarassing!
All help appreciated.
Thanks
NevyNev
RE: "Submit" Button unclickable when lots of text
RE: "Submit" Button unclickable when lots of
RE: "Submit" Button unclickable when lots of text
$_GET has a maximized field length. Have you considerd using "method='POST'" with your form- field?