You did upload both files to a webserver, didn't you? And that webserver is configured to handle CGI scripts, isn't it? And you've made sure you've set the permissions for showme.pl correct, haven't you?
| [reply] |
That's right. I did all. But when I submit showme.pl, indicated in action, pops up in the browser. I can't understand how it should work as a server code.
I usually invoke a pl/cgi code through the local host url on my local web server and this code creates the client html on the browser. Now the html file and the code a separate. I am missing something certainly in my knowledge. I would be really grateful if you explain me how it works in your version.
| [reply] |
Am I correct in assuming that you get to see the source code of showme.pl, instead of the output it is supposed to give? If that's the case then either your webserver is misconfigured for handling CGI (maybe it's not set up to handle .pl files? I don't know, it's been a long time since I last bothered to toy around with those things. Once it works I don't touch webserver configurations again) or you've not set the correct permissions on the script. I'm fairly sure the tutorials mentioned above will help you.
If I'm wrong, though, and you're asking something else, then please be more precise. Do you not understand how the script works? Which part? Are you fairly sure the tutorials above don't answer your question? Because both the html and the script are pretty basic. There's nothing fancy to it.
| [reply] |