Thus spake Ilhuicatzi Cortes J. Henry
> im using Pg to make CGI's beetwen Postgres and perl, where can i find
> examples about Pg. I have tried to make any CGI's and doesn't work fine.
>
> Does someone have any examples about CGI?
It's Python, not perl but it may give you some ideas. I have a page of
motorcycle rides at http://www.druid.net/rides/ that I maintain in a
simple PostgreSQL database. The page has a link at the bottom that
shows the actual Python source that manages the page.
If your pages fail altogether, you may just be missing the first line that
gives the content type. Note in the source how the first print statement
displays the string "content-type: text/html" followed by one totally blank
line. Without that your page won't work.
Note, IE users may have to click on the link then view source. Some
versions of IE mistakenly try to parse the html in the text file that
they get handed.
--
D'Arcy J.M. Cain <darcy@{druid|vex}.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 424 2871 (DoD#0082) (eNTP) | what's for dinner.