SHAD Posted May 20, 2011 Share Posted May 20, 2011 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. Thanks Quote Link to comment Share on other sites More sharing options...
SilvaTungDevil Posted May 20, 2011 Share Posted May 20, 2011 $_POST maybe? Quote Link to comment Share on other sites More sharing options...
Djkanna Posted May 20, 2011 Share Posted May 20, 2011 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']); $getReply->execute(); $getReply->store_result(); if ($getReply->num_rows() > 0) { $getReply->bind_result($postContent, $postCreator); $getReply->fetch(); } $getReply->free_result(); $getReply->close(); } $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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.