From: Gale CC Date: 2007-07-04T19:55:38+09:00 Subject: CGI with DBI error - cant use both at the same time Hi, I'm using Ruby's CGI to handle some forms, and the form input is to be further used to query a database. But I'm getting errors when I try to use the DBI module to connect to the database. Even just typing "require 'dbi'" is screwing up things. For instance in the following code, nothing would show up unless I remove "require 'dbi'". #!/usr/local/bin/ruby -w print "Content-type: text/plain\n\n" require "cgi" require "dbi" puts "Thanks- form submitted" If instead of using the print command, I try to use cgi.out then I get "500 Internal Server Error". Does anyone know a fix to this problem ? Thanks, Gale -- Posted via http://www.ruby-forum.com/.