Jump to content

[SOLVED] grabbing a quote


runnerjp

Recommended Posts

like on here where you click the quote link so that you can quote someone

 

the quote

 

like so... this is what im trying to achive... now to coolect the quote iv done this

 

<?php function quoteThis()
{
var txt = '';
if (window.getSelection)
	{
	txt = window.getSelection();
	}
else if (document.getSelection)
	{
	txt = document.getSelection();
	}
else if (document.selection)
	{
	txt = document.selection.createRange().text;
	}
else txt = "";
var hiddenForm = getElementById("hiddenQuoteSendoff");
hiddenForm.quote_text = txt;
hiddenForm.submit();
}?>

 

but i get unexpected_t VAR  here var txt = '';

Link to comment
https://forums.phpfreaks.com/topic/129077-solved-grabbing-a-quote/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.