Jump to content

getting "quotes" from forum needs improving...


runnerjp

Recommended Posts

ok at the moments this is how i get a quote form the forum...

 

 

First i click the quote button which stores the post id

<form action="index.php?page=reply&forum=<?php echo $forum; ?>&id=<? echo
$forumpostid ?>" method="post">
        <input name="quote" type="hidden" value="<? echo $gettopic3['postid']; ?>" />
       <input name="submit" type="submit" value="quote" />
</form>

 

 

then on the reply page i do this

 

 <textarea id="inputforum" class="inputforum" name='yourpost' rows='5' cols='40'><?php echo
$thePost;
if (isset($_POST['quote']))
{
$quote = mysql_fetch_assoc(mysql_query("SELECT * from forumtutorial_posts where postid='".$_POST['quote']."'"));

?>[quote=<?php echo $quote['author'] ?> ] <?php echo $quote['post']; ?> [/quote] <?php


}?> </textarea>

 

so would you guys say this is the best way to do it or could it be improved??

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.