runnerjp
asked on
getting quotes
ok im trying to get quotes from my forum so users are able to quote other users posts...
what i came upwith is this
on the forumpgae display a quote button that has a form like so
<form action="index.php?page=rep ly&id=<? echo $forumpostid ?>" method="post" name="quote">
<input name="quote3" type="hidden" value="<? echo $getreplies3['postid'];?>" />
<input type="submit" value="quote" />
</form>
then on the action page display a textbox that shows the below code... the thing is nothing shows up in the textbox ??
what i came upwith is this
on the forumpgae display a quote button that has a form like so
<form action="index.php?page=rep
<input name="quote3" type="hidden" value="<? echo $getreplies3['postid'];?>"
<input type="submit" value="quote" />
</form>
then on the action page display a textbox that shows the below code... the thing is nothing shows up in the textbox ??
<textarea id="inputforum" class="inputforum" name='yourpost' rows='5' cols='40'><?php if(isset($_POST['quote'])) {
$quote= $_POST['quote'];
?>
[quote]
<? echo $quote; }?> </textarea>
Sholdn't you be refering to the hidden input named "quote3"? $_POST['quote3']...
You may want to show us a little more of this than what you posted above. Where do these variables come from?
Also, in your input you have <input name=quote3 but in your action script you have if(isset($_POST['quote'] and I think you'll find that quote3 and quote are not the same thing.
Also, in your input you have <input name=quote3 but in your action script you have if(isset($_POST['quote'] and I think you'll find that quote3 and quote are not the same thing.
ASKER
ahh yes got it working :)... is this the best way to do it?
also below is how i show my quotes..
how could i make it look like the image added so that the user who quoted it is added ect and it looks smart?
also below is how i show my quotes..
how could i make it look like the image added so that the user who quoted it is added ect and it looks smart?
"[quote]" => "<p style=\"background: #E2E2E2; border: 1px solid #99b3b4; padding: 6px;\"><span style=\"font: bold 10px Courier New;\"></span>", "[/quote]" => "</p>"
quote.jpg
ASKER
or anything fancy like that~?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Good thing it worked :)