in reply to Guess the number
do the following steps
1.put this file in a web server directory which executes cgi scripts and change permission to 755 (assuming a *nix server)
2.add print " Content-type: text/html \n\n" at top of the program
3.create a html form with a input box and a submit button
4. u can pass the num of tries either from a hidden variable from the HTML form or set a cookie
5. use CGI.pm and get the variables instead of reading from STDIN
hope this helps
1.put this file in a web server directory which executes cgi scripts and change permission to 755 (assuming a *nix server)
2.add print " Content-type: text/html \n\n" at top of the program
3.create a html form with a input box and a submit button
4. u can pass the num of tries either from a hidden variable from the HTML form or set a cookie
5. use CGI.pm and get the variables instead of reading from STDIN
hope this helps
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Guess the number
by chip_creep (Acolyte) on Jan 11, 2004 at 21:07 UTC | |
by Mongo Job (Initiate) on Feb 18, 2004 at 21:46 UTC | |
by Mongo Job (Initiate) on Feb 18, 2004 at 21:59 UTC | |
by chip_creep (Acolyte) on Feb 24, 2004 at 04:14 UTC | |
by chip_creep (Acolyte) on Feb 22, 2004 at 17:23 UTC |
In Section
Craft