Thread Problem: Aus @ wird%40.
(22 answers)
Opened by Gast at 2008-05-19 11:20
Wie moritz schon sagte, solltest Du CGI.pm verwendan, also anstatt
Code: (dl
)
1 foreach $pair (@pairs) { lieber das hier schreiben: Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 use CGI; my %FORM = CGI::Vars(); if( $allow_html != 1 ){ for my $key ( keys %FORM ){ $FORM{$key} =~ s/<([^>]|\n)*>//g; } } while( my ($key,$value) = each %FORM ){ next if( $key eq 'Submit' ); print FILE $key, "=", $value, "\n"; print HTMLFILE "<tr>\n<td>$key</td>\n<td>$value</td>\n<tr>\n"; } Edit: noch das "allow_html" hinzugefĆ¼gt OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/) -- Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html Perl-Entwicklung: http://perl-services.de/ |