[vienna.pm] CGI-Problem: Value wird zu Key

roland.bauer at fff.at roland.bauer at fff.at
Thu Aug 16 10:32:36 CDT 2001


* * * vienna-pm-list * * *


Hallo,
ich habe da ein seltsames Verhalten eines CGI-Scriptes:
(Perl 5.6.1 Build 628, ist aber auch in Build 520 und 522 so)

- Ich weise manche Parameter dem Hash %f zu.
- Aber wenn man das Feld "category1" im formular anwaehlt, 
enthaelt $f{zeit} und
$f{date} den Value, also zB $f{zeit} = "12:20"
- Der Fehler tritt nur bei zeit und date auf.
- format hat dann den value (!) "date"
- Es sieht aus, als ob da etwas verrutscht.
- Laut Dump-Funktion ist alles ok.
- Wenn ich das Feld category1 NICHT anwaehle, klappt es
- Die Feldnamen enden auf "1", weil ich dachte,
es liegt an der Namensgebung.

Ich hatte so etwas schon einmal bei einem
CGI-Script, da verschwanden aus einem Array Eintraege.
(bis jetzt nicht geloest, weil ich's noch immer nicht
glauben kann)

Ich weiss nicht, wer mir da jetzt helfen koennte,
weil das alles so mysterioes ist, aber ich versuchs halt ;-)

Bei mir ist der Fehler reproduzierbar und das SCript
besteht eigentlich nur aus einem Formular

Roland


#----------------------------------------------    # Felder
    my %f = (
	'id'       => $q->param('id'),
	'title'    => $q->param('title'),
	'text'     => $q->param('text'),
	'keywords' => $q->param('keywords'),
	'keyw'     => $q->param('keyw'),
	'category' => $q->param('category1'),
	'path'     => $q->param('path'),
	'format'   => $q->param('format1'),
	'date'    => $q->param('date1'),    
	'zeit'    => $q->param('zeit1'),    
	'type'     => $q->param('type'),
    );

    #print_log($q->dump); # v5.5.030
    print_log("-------1-----\n",$q->Dump); # v5.6.1
    print_log(keys %f);
    print_log("-------2-----\n",$q->Dump); # v5.6.1
#----------------------------------------------
    
--
roland.bauer at fff.at
http://www.fff.at/

###
You are subscribed to vienna-pm-list as <roland.bauer at fff.at>
http://www.fff.at/fff/vienna.pm/



More information about the Vienna-pm mailing list