> $username = param('username');
> $lastname = param('lastname');
>
> my question is, how can i use that two variable to another script
> open by this command:
>
> system('sudo', '-u', 'www', '/path/to/anotherscript.pl');
>
> Is that possible?
You could redirect to another url:
print $q->redirect( "http://yourhost/another.cgi?username=$usernamename" );
or use a hidden param in a form:
print qq(
<FORM METHOD="POST" action="http://yourhost/another.cgi">
<INPUT TYPE="hidden" NAME="username" VALUE="$username">
<INPUT TYPE="submit" VALUE="submit">
</FORM>
);
then have that script run your system() command
HTH,
Jim
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]