Thank you all for trying to help me.
bjelli, your suggestion came close to what I have done (after I posted my problem here).
I am cyrrently trying to get the server cgi script (reading cgi.pm), as I am getting some header errors.
Thank you all for your help. You guys rock !!!