Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cgi problem

Status
Not open for further replies.

krappleby025

Programmer
Sep 6, 2001
347
NL
hey all, im running cgi on a windows system, and the script works fine.. however the script does not work properly... i am trying to make a counter work, and you can view the counter on the page...


however when the script runs it does not work.. the cgi file is


however it is supposed to be pulled with the extensions
?1+7+main

now, the first address works, and displays the number, but if you add the extensions to the end it does not work comes up with an error placing the script name as

livecntr.cgi1
taking out the ? can anyone tell me what is wrong

thanks
 
It appears that your cgi application can not figure out where your program name ends and the passed vars start.

Most cgi applications expect to get any arguments in the form of "parameter_name=parameter_value" like this:

Code:
livecnt.cgi?var1=value1

If you want to pass more than one parameter to the cgi code, separate them with an ampersand...
Code:
livecnt.cgi?var1=value1&var2=value2&var3=value3

Note that the url most be encoded to avoid spaces and such. If there was a space in value2 like, "spaces in value 2", it might look like...
Code:
livecnt.cgi?var1=value1&var2=spaces%20in%20value2&var3=value3
'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top