Help - Search - Members - Calendar
Full Version: Program Owners HELP ME!!!
Get Paid Forum - Get Paid Discussion > Webmaster's Corner > General Discussion on Building, Running & Making Money from a Website
RishiBoy
I am launching my own program tomorrow. I need some help. I have some forms, and am looking at making a referral link where I can do for example:

http://www.google.com?41132

And the number (i.e. 41132), automatically being inserted in one of the Form slot-thingies.

Please help me nooooooooowww! co.gif
freeandeasy
QUOTE (rishiboy @ Feb 28 2003, 10:30 PM)
I am launching my own program tomorrow. I need some help. I have some forms, and am looking at making a referral link where I can do for example:

http://www.google.com?41132

And the number (i.e. 41132), automatically being inserted in one of the Form slot-thingies.

Please help me nooooooooowww! co.gif

Uhhhh, what kind of scripts do you have?
RishiBoy
I think I may need some sort of java script to do this..

Someone pleeeeaaaaaseeeee help!!!
RishiBoy
QUOTE (freeandeasy @ Feb 28 2003, 11:41 PM)
QUOTE (rishiboy @ Feb 28 2003, 10:30 PM)
I am launching my own program tomorrow. I need some help. I have some forms, and am looking at making a referral link where I can do for example:

http://www.google.com?41132

And the number (i.e. 41132), automatically being inserted in one of the Form slot-thingies.

Please help me nooooooooowww! co.gif

Uhhhh, what kind of scripts do you have?

No scripts! ad.gif

Not a ptc site, but I need help because it has referrals, etc..
RishiBoy
I just need some sort of code so that if I do perhaps..

http://www.google.com/?411313313

Then '411313313' will be inserted into a form.
freeandeasy
I have some simple scripts that track referrals, BUT

1) I haven't even looked at them,
2) I would have to find them amongst the few hundred scripts in my collection, and then
3) they would need to be installed. They are perl and/or php.

This cannot all be done overnight.

But if you are willing to wait a few days, I might be able to help (or maybe not, depends on whether the scripts I have would be what you need).

PS, these are mostly free scripts that I have. I don't have very many of the "boughten" kind.
ac.gif
RishiBoy
Would they work on a normal angelfire/geocities/freewebs type page?

If so, then I wouldn't mind waiting a few days. aq.gif
petcalent
ia an html page?
freeandeasy
Some php scripts do not use mysql. Those might work at a free site.
But right now I'm doing a search to see if I can find a javascript that will work. If I can find one, that would be your easiest solution.
RishiBoy
Yep, java is the way to go! aa.gif
ReDucTor
Server side:

Use the environment variable QUERY_STRING

PHP:
CODE
Referrer: <input type="text" name="referrer" value="<?=$_ENV['QUERY_STRING']?>">


Perl:
CODE
print "Referrer: <input type=\"text\" name=\"referrer\" value=\"$ENV{'QUERY_STRING'}\">





Client Side:

Use your search.

java script:
CODE
document.write("Referrer: <input type=\"text\" name\"referrer\" value=\""+location.search.substring(1,location.search.length)+"\">");
freeandeasy
I can't find anything in javascript that does what you want. ah.gif
It's late and I'm falling asleep, but tomorrow I'll see if I can find a simple php script that will work.
freeandeasy
QUOTE (ReDucTor @ Mar 1 2003, 12:17 AM)
Client Side:

Use your search.

java script:
CODE
document.write("Referrer: <input type=\"text\" name\"referrer\" value=\""+location.search.substring(1,location.search.length)+"\">");

Cool, a javascript will work?
I'll have to study that and see if I can figure it out.
I'm not very techy.
RishiBoy
I need more help.. How do I use that java script/line? ak.gif
RishiBoy
Thanks! It works.. ab.gif

I have one more question, what is the java I should put on each page to keep the referrer id?
petcalent
java is not the same than javascript

Depending the number de pages you uses, you can opt for a
cookie or add the refnumber to all the hyperlinks,
concatenating strings or something similar. ad.gif
You may wait for Reductor better. ac.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.