Hi,
I'm new to CGI and i have a problem with the post method.
In my HTML I have a small form that uses the POST method.
The problem I have, is that in my CGI (Perl) script the string i receive from STDIN is empty. I've tried different way to do it but it never works.
I use: read (STDIN, $input, $ENV{CONTENT_LENGTH}).
I'm able to print the content length, but $input is always empty. It prints nothing
Hope you guys can help me.
Thanks in advance,
Tijs Programming is like sex: one mistake and you have to support it for the rest of your life.
I'm new to CGI and i have a problem with the post method.
In my HTML I have a small form that uses the POST method.
The problem I have, is that in my CGI (Perl) script the string i receive from STDIN is empty. I've tried different way to do it but it never works.
I use: read (STDIN, $input, $ENV{CONTENT_LENGTH}).
I'm able to print the content length, but $input is always empty. It prints nothing
Hope you guys can help me.
Thanks in advance,
Tijs Programming is like sex: one mistake and you have to support it for the rest of your life.