Jump to content

Forums - Request-URI Too Large


Recommended Posts

Hi All,

I've realized that in mccodes forum, specifically the quote function, it uses the $_GET to get all the quoted text.

Now the problem with this is, if you quote large data, it all appears in the url and the url becomes really lenghty, then i get the message "Request-URI Too Large".


Any alternatives to this? Mabye use an id or something? I'm not sure.


Link to comment
Share on other sites

I used an ID to get around the problem somewhat also.

//Data $_GET['quote'] ( reply )

if ($getReply = $db->prepare ('SELECT `postContent`, `postCreator`, FROM `posts` WHERE (`postID` =  ?)') ) { 
   $getReply->bind_param('i', $_GET['quote']);
   if ($getReply->num_rows() > 0) {
       $getReply->bind_result($postContent, $postCreator);

$value = '';
if (isset ($postContent) && isset ($postCreator)) {
  $value = '[\quote='.$postCreator.'\]'.$postContent.'[/quote\]'; // \ because it likes to inject the BBCode of this forum into it.

<textarea><?php echo $value; ?></textarea>

Something to that effect.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...