runnerjp Posted October 20, 2008 Share Posted October 20, 2008 im trying to write a script for my forum where if i user wants to quote a text displayed in a thread they click quote and the message is displed in the reply textbox between quote tags... i have thought about doing it like this <form class="quote_post" action="index.php?page=reply&id=<? echo $id ?>" method="post"> <input type="hidden" name="pkey" value="[code]<?php echo($message) ?> " /> <input type="image" value="Quote" src="" /> </form>[/code] but the message gets echoed out on the page has any one got any ideas? Link to comment https://forums.phpfreaks.com/topic/129272-copying-text-and-pasting-in-anouther-page/ Share on other sites More sharing options...
Orio Posted October 20, 2008 Share Posted October 20, 2008 It's not a good idea to pass the whole reply. You have that reply stored in your database, just pass the ID and use that to fetch the reply from the db. Orio. Link to comment https://forums.phpfreaks.com/topic/129272-copying-text-and-pasting-in-anouther-page/#findComment-670231 Share on other sites More sharing options...
runnerjp Posted October 20, 2008 Author Share Posted October 20, 2008 ok put on the other side (the reply page) how would i echo it out so its between [ code] tags within the textbox ??.. Link to comment https://forums.phpfreaks.com/topic/129272-copying-text-and-pasting-in-anouther-page/#findComment-670243 Share on other sites More sharing options...
runnerjp Posted October 20, 2008 Author Share Posted October 20, 2008 bmp Link to comment https://forums.phpfreaks.com/topic/129272-copying-text-and-pasting-in-anouther-page/#findComment-670414 Share on other sites More sharing options...
runnerjp Posted October 21, 2008 Author Share Posted October 21, 2008 ok mybe im askign the wrong questions... bascily on here when you hit the quote button and it copys the info and then sends you to the postreply text box... it then puts the code into the textbox along the lines of [ quote author=runnerjp link=topic=221933.msg1019683#msg1019683 date=1224542325] bmp [/ quote ] how is this done? as i would like to add this to my forum Link to comment https://forums.phpfreaks.com/topic/129272-copying-text-and-pasting-in-anouther-page/#findComment-670788 Share on other sites More sharing options...
prexep Posted October 21, 2008 Share Posted October 21, 2008 Check to see if there is a ID set for quote and if there is get it and echo/print it out in the textarea. Link to comment https://forums.phpfreaks.com/topic/129272-copying-text-and-pasting-in-anouther-page/#findComment-670839 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.