Hi All,
I've used this code to receive data transmitted via a POST.
read( STDIN,$buffer,$ENV{CONTENT_LENGTH} );
@string = split( /&/,$buffer );
foreach $str( @string )
{
( $name,$value ) = split( /=/,$str );
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$FORM{ $name } = $value;
}
I was able to print all the names and their values.
It works well. However, I was wondering if I can use the same code to receive
the data entered in the TEXTAREA.
For example : print"<b1>$FORM{ z0comments }</b1></p>\n";
I am at work and not at my computer to try it. I just wanted to know if it was possible.
TEXTAREA COLS="40" ROWS="4" NAME="z0comments">
Thanks,
Mike
I've used this code to receive data transmitted via a POST.
read( STDIN,$buffer,$ENV{CONTENT_LENGTH} );
@string = split( /&/,$buffer );
foreach $str( @string )
{
( $name,$value ) = split( /=/,$str );
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$FORM{ $name } = $value;
}
I was able to print all the names and their values.
It works well. However, I was wondering if I can use the same code to receive
the data entered in the TEXTAREA.
For example : print"<b1>$FORM{ z0comments }</b1></p>\n";
I am at work and not at my computer to try it. I just wanted to know if it was possible.
TEXTAREA COLS="40" ROWS="4" NAME="z0comments">
Thanks,
Mike