Page 1 of 1
JS/CGI help
Posted: 2003-04-07 07:35pm
by Pu-239
How do I pull and push values from a cgi script. I want to make a perl script which just recieves hits from a javascript, and adds it to a value currently stored in a file somewhere. That part is easy. The hard part is making a javascript that sends a hit to the cgi script if the user does not have a cookie signifying he/she has not visited the site before. The problem is I don't know how to make Javascript just accept output from a cgi script like a return value.
Posted: 2003-04-07 08:25pm
by Pu-239
Please?
Oh I just made a new webpage for school. It's full of anti MS filler BS material that isn't meant to be read though. Links are too dark and almost unreadable. *shrugs*
BTW, free.prohosting.com seems like a good hosting service. Gives you a cgi-bin too. I think you can set up php there, but I'm not sure.
Posted: 2003-04-07 08:59pm
by Pu-239
NM, I think you can access cookies directly w/ perl. Now just need to learn how to do that...
Posted: 2003-04-07 10:24pm
by Exonerate
Get PHP and learn it... Your life will suddenly become a lot easier
Posted: 2003-04-07 10:42pm
by Pu-239
Nah, I would prefer to use perl CGI since you can also use it to do many other things. If you really wanted to, you could also write a CGI program in shell script too.