FromCGI and Untaint question

[prev] [thread] [next] [Date index for 2004/10/19]

From: Peter Speltz
Subject: FromCGI and Untaint question
Date: 17:23 on 19 Oct 2004
Can one create_from_cgi take extra key value pairs for columns one didn't get
from cgi?  ? 
Ex:   Adding an cd by an artist.  artist_id is a cd column. The artist is
already known and the cd info is gotten from cgi. I want to say:

 my $new_cd  = CD->create_from_cgi($h, artist_id => $artist_id ); 

(p.s. I know I could probably make a hidden elements for my known ) 

Untaint question:
What is the right way to extract a CGI::checkbox_group?  I have a group named
"usr_privs". IN the code below, $privs ends up being and array ref with an
array ref of itself in it with an arrayref of itself in it .. .

 my $h        = CGI::Untaint->new( %params );
 my $privs = $h->extract(-as_printable => 'usr_privs'); 

 print "$privs \n"; 
 foreach (@privs) { print "element of privs: $_ \n"; };
 # prints:  
 #   ARRAY(0x90d66e4)
 #   element of privs: ARRAY(0x90d66e4)



thanks. 

=====
pjs


		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

(message missing)

prefixing table names?
bowen 15:20 on 15 Oct 2004

Re: prefixing table names?
jason 15:36 on 15 Oct 2004

Re: prefixing table names?
Tony Bowden 18:45 on 15 Oct 2004

SQL Generation ( was Re: prefixing table names?)
jason scott gessner 00:08 on 19 Oct 2004

Re: SQL Generation ( was Re: prefixing table names?)
merlyn (Randal L. Schwartz) 09:46 on 19 Oct 2004

Re: SQL Generation ( was Re: prefixing table names?)
merlyn (Randal L. Schwartz) 10:00 on 19 Oct 2004

Re: prefixing table names?
Tony Bowden 15:36 on 15 Oct 2004

Re: prefixing table names?
Bowen Dwelle 22:05 on 15 Oct 2004

Re: prefixing table names?
Bradley K. Embree 22:16 on 15 Oct 2004

Re: prefixing table names?
Bowen Dwelle 22:48 on 15 Oct 2004

Re: prefixing table names?
Bowen Dwelle 23:20 on 15 Oct 2004

Re: prefixing table names?
Perrin Harkins 16:44 on 15 Oct 2004

FromCGI and Untaint question
Peter Speltz 17:23 on 19 Oct 2004

Re: prefixing table names?
Bowen Dwelle 01:31 on 02 Nov 2004

Re: prefixing table names?
Bowen Dwelle 16:36 on 02 Nov 2004

Generated at 11:35 on 01 Dec 2004 by mariachi v0.52