Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Perl code doesn't echo form databy kcott (Archbishop) |
on Mar 24, 2020 at 04:25 UTC ( [id://11114590]=note: print w/replies, xml ) | Need Help?? |
G'day nrabus, Welcome to the Monastery. From your description, it sounds like the problem lies with you web server configuration. I don't know what you're using but I'll take a guess at Apache. You need to specify in your configuration file — possibly named httpd.conf — that the cgi-bin directory has Perl code which the web server should execute. I can't tell you exactly what the configuration code would be; however, it might look something like:
There's quite possibly other directives you'll need. I'm not really comfortable guessing any further. If it is Apache, the default httpd.conf provides some clues. Get details from "Apache HTTP Server Version 2.4 Documentation"; although, you may need a different version. See the "Directive Index" for links to the documentation for individual directives. I only briefly looked at your code. You generally seem to be on the right track. You've got a semicolon where you probably should have a comma after the "Last name:" part; alternatively, add another print after it (i.e. just before the "Gender:" part). You also might like to consult the "CGI" and "CGI::HTML::Functions" documentation. — Ken
In Section
Seekers of Perl Wisdom
|
|