I need the feature when someone clicks on some text it takes them to a different page and inserts the text into a textarea. I have this feature with other non-drupal websites, but cannot get it to work in drupal. Here is my coding so far:

a href="page?quote=Return with Honor."

In my header, I have this code:

function setDefaults()
{
/* Default font, color, and alignment */
this.changeFont("Passions", "Passions");
this.changeColor("Black Matte", "0x000000");
this.setAlignment("center");

with (document.forms[0])
{
text1.value = "<?= $_REQUEST['quote'] ? $_REQUEST['quote'] : 'Enter your own text here' ?>";
text1.focus();
txtHeight.value = "3";
}
document.Format.SetVariable("txtInput", document.getElementById("text1").value.replace(new RegExp("\\r", "g"), ""));
}

The textarea has this code:

textarea id="text1" name="text1" cols="95" rows="4" onkeyup="javascript:text1_onKeyUp();"
value="<?= $_REQUEST['quote'] ? $_REQUEST['quote'] : 'Type your Quote, Text, or Word(s) Here!' ?>"

This code works fine to place the quote in my flash preview box, but does not fill the textarea. What do I need to change to make it Drupal friendly?

Thank you in advance!

Comments

Status: Active » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.