in reply to CGI to query other websites

Something that didn't get mentioned is that CGI runs on the server side. What you're seeing in the HTML, above, is code that gets executed on the server the web page came from. It can't execute anywhere else.

If you want to run a server and create a database and let other people use it, then use CGI. But if you're trying to access someone else's information, forget about CGI.

Depending on what you want to do, LWP::Simple works fine for many simple and even some complex websites. Not everything requires an API.

Replies are listed 'Best First'.
Re^2: CGI to query other websites
by tospo (Hermit) on Apr 21, 2010 at 11:18 UTC

    The OP said that the goal is to make a website that allows users to gather data from other databases. So both CGI and a way of interacting with the third party sites is required.

      I can see that now. On first reading, I thought he was confusing front- and back-end.

        Thank you all for the excellent suggestions. These ideas are very helpful, and I much appreciate the guidance!