View Single Post
Old 07-04-2011, 11:45 AM   PM User | #1
slyfox
New Coder

 
Join Date: May 2009
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
slyfox is an unknown quantity at this point
$_GET and JavaScript

Hello,

I am using the ColorBox (http://colorpowered.com/colorbox/) modal on my site.

I have a form, which is in an inline DIV. That div is called with a link.


The code looks the following way:
Code:
 
$(".example8").colorbox({width:"50%", inline:true, href:"#inline_example1"});
AND

Code:
<p><a class='example99' href="#">Quote</a></p>
AND

Code:
 <div style='display:none'>

        <div id='inline_example1' style='padding:10px; background:#fff;'>
                    <form class="settings" method="post" name="forumF" action="addpost.php">
 
                    
                    
                    <label>Message:</label>
                    <textarea class="field" name="replyText" id="replyText" rows="10" cols="30" style="color:#000;"><?php echo $quote; ?></textarea>
                    
                    <div class="buttons">
                    <input type="submit" value="POST" name="replyButton" class="submit">
                    </div>
                    </form>
         
        </div>

    </div>

So, as you can see the "<?php echo $quote; ?>" inside the TEXTAREA tag. I wish, when users click the QUOTE button, the quotet post will appear in the textarea, using $_GET.
slyfox is offline   Reply With Quote