CGI and DBI : using db queries in html

2007-11-08 Thread neil
ser can access $q -> popup_menu(-name => 'study_select', -values => [EMAIL PROTECTED]), @studies is of length 2, but only one of these gets listed in the menu that is generated. Can anyone suggest how I go about using an array as a list of values (and labels) in a popup_menu()? Thanks for taking the time to look at this problem, Neil -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: CGI and DBI : using db queries in html

2007-11-09 Thread neil
works :D and for reference is included below (in case others are searching for similar solutions). Thanks for your help, Neil #!/usr/bin/perl -w use strict; use CGI; use DBI; ### Initialise a new CGI object my $q = new CGI; ## Define the database connection my $user = ""; my $

formatting tables generated by checkbox_group()

2007-11-26 Thread neil
- columns=>2), but the table and checkboxes weren't drawn. Should I redefine my css styles so that the blank table is actually how I want default tables to be (i.e. change the font-size in the two lines given), or is it possible to get the class="" set vic CGI.pm? Cheers Neil -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

RE: Restart Apache

2002-11-26 Thread Neil Lathwood
Jeremy Schwartz wrote > but apache is not restarting. What does your apache error log file say? Neil -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Search and replace a block of imported text

2002-12-16 Thread Neil Green
he file between and (over a number of lines) and simply obliterate it, before reading the array line by line using $_. Can anyone here offer any suggestions as to the best way to do a search and replace over multiple lines of a file? Many thanks, Neil. -- To unsubscribe, e-mail: [EMAIL PROTE