View Full Version : Populate <textarea> on non-vB page from link in postbit?
safiel
01-20-2005, 11:42 PM
In a posted thread, in every postbit, we want to have a link "forward this message as a postcard" - they click on the link, it takes them postcard.php, and should autopopulate the <textarea> for the postcard message with the message only in that single post.
Using vB functions, can someone tell me the easiest way to pass the post's text to another page?
Tekton
01-20-2005, 11:57 PM
send the postid of the message(post) that you want copied and then run a little query getting the pagetext from the db matching the postid?
'course, make sure they have permission to view the message too...
safiel
01-21-2005, 01:05 AM
Do you think that would be best, or could you even just transfer the pagetext avoiding a query? If I can skip a query that would be great.
The main hinerance is that and I don't know what the query would look like. Probably just a mysql_query from the post table, the pagetext, where postid = postid, right?
deathemperor
01-21-2005, 02:49 AM
it's impossible to do so, unless you use copy and paste. Becausing reloading a page would also need to reload the data, and that page contains non-static data so everytime you open it you get to run queries. I believe it's a very simple query and wouldn't take alot of time so don't be worried about it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.