> In a php script a have a form wich is used to start a perl script (cgi
> spript). How kan i pass variables from php to perl ?  Can this been
> done without showing users the variable(s). Need to hide the varaibles
> from the users. --- rbh

If I understand you well you generate the <form> with a PHP script 
and then process it with a Perl script. Right?

You may add the data to the form as hidden fields :

<input type=hidden name=something value="blah blah blah">

and if the <form method=POST> the data will not be visible to the 
user (unless he looks at the page source of course).
If you want to prevent this you should encrypt the data somehow.
You should encode them even if you do not want this. You need to 
at least escape the doublequotes within the values.
 
I think either URL::Escape or MIME::Base64 would work well. If the 
data are mostly printable you could use MIME::QuotedPrint, but do 
not forget to escape the doublequotes as well:

        $enc_data = encode_qp $data;
        $enc_data =~ s/"/=22/g;

(of course these are Perl modules, but I suppose you can do the 
same in PHP).

HTH, Jenda

== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==
: What do people think?
What, do people think?  :-)
             -- Larry Wall in <[EMAIL PROTECTED]>
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to