You can't "document.write" elements into forms
put the hidden input in the form and use
Code:
document.formname.hiddenElementName.value = getQueryVariable("key");
and at the basic PHP would be
HTML Code:
<input type="hidden" name="whatever" value="<?$_GET['keyname']?>">
although you should "sanitise" the querystring value first
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|