MacCult
03-23-2006, 05:10 PM
Hi,
I am writing a simple CGI program using C++ for my class assignment. My problem is I don;t know how to extract the variables that is passed from the website to the CGI program. For example, the website that I have created will take 2 number, says num1 and num2. When it calls the CGI program something like this will generate: http://www.test.com/?num1=3&num2=9 . So, how do I extract that 3 and 9 from the URL in my C++ program.
Thanks
I am writing a simple CGI program using C++ for my class assignment. My problem is I don;t know how to extract the variables that is passed from the website to the CGI program. For example, the website that I have created will take 2 number, says num1 and num2. When it calls the CGI program something like this will generate: http://www.test.com/?num1=3&num2=9 . So, how do I extract that 3 and 9 from the URL in my C++ program.
Thanks