Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 218
  • Last Modified:

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=reply&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 ??
<textarea id="inputforum" class="inputforum" name='yourpost' rows='5' cols='40'><?php if(isset($_POST['quote'])) {
                        $quote= $_POST['quote'];
					      
?>
[quote] 
 <? echo $quote; }?> </textarea>

Open in new window

0
runnerjp
Asked:
runnerjp
  • 2
  • 2
  • 2
1 Solution
 
Ara-Commented:
Sholdn't you be refering to the hidden input named "quote3"? $_POST['quote3']...
0
 
Ray PaseurCommented:
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.
0
 
runnerjpAuthor Commented:
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?


"[quote]" => "<p style=\"background: #E2E2E2; border: 1px solid #99b3b4; padding: 6px;\"><span style=\"font: bold 10px Courier New;\"></span>", "[/quote]" => "</p>" 

Open in new window

quote.jpg
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
runnerjpAuthor Commented:
or anything fancy like that~?
0
 
Ray PaseurCommented:
I think your quote scheme looks fine.

<snip>how could i make it look like the image</snip>

That's really a separate question.  What you're looking for is called a "teaser fragment" in online journalism.

Anyway, glad you got the input and action scripts working together!  Best regards, ~Ray
0
 
Ara-Commented:
Good thing it worked :)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now