Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: Send HTML to the server

by vit (Friar)
on Sep 12, 2011 at 02:54 UTC ( [id://925397]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Send HTML to the server
in thread Send HTML to the server

This is great. One question though, might be stupid. How did you run the script? I have showme.html and showme.pl in the same directory. The first one pops up the browser, then when I submit what should happen?
Please do me a favor and explain this.

Replies are listed 'Best First'.
Re^5: Send HTML to the server
by muba (Priest) on Sep 12, 2011 at 03:12 UTC

    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?

      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.

        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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://925397]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (6)
As of 2024-04-24 08:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found