PDA

View Full Version : Auto Form Fill In



Anayet
July 18th, 2001, 05:01
Some sites have a link that fills in sections of a form, such as:
http://www.abcd.com?refferer=Anayet
or something like that, and the section of the form that has referrer in it, will have Anayet already entered.

How do I do this, How does the link have to written? cause I'm sure the above link is incorrect.

lucifer
July 18th, 2001, 05:58
yes the above link is incorrect

its referrer not refferer although in HTTP it's referer as people can't spell :)

you could do it as


<form>....

<script language="javascript">
document.write('<input type="text" name="ref" value="' + window.location.search + '">');
</script>

</form>

use link mypage.html?referer

not ....---------referer

should work let me know

Anayet
July 18th, 2001, 08:12
Unfortunatley I couldn't do it, because the way I wanted to do it, I think is not possible.

Because there is a page:
http://www.ccnow.com/cgi-local/cart.cgi?anayet_LOT

And there is a field there with the Name Referrer (thanks 4 spelling:D)
I wanted that referred field to be entered when the link had the detail in it, eg my name, or something, in the link itself.

And I can't add any HTML to the page, because the service does not allow it.

Thanks anyway, however if it is possible to do this, then please post it.

Thanks again

lucifer
July 18th, 2001, 09:02
if you can't change the page there is nothing you can do :( unless they have it set up