# ok, the probleme is went i am in the html page of the cgi
# I could click on a link "# bin/script.gci?delete=1001, so this recall the same script
# my trouble is at the head of the script when the cgi
# decide which sub will be start...
$referer = $ENV{HTTP_REFERER};
if (($action eq "checklogin"
&& ($referer ~ "$scripturl"
) {
&check_login;
}
elsif (($action eq "delete"
&& ($referer =~ "$scripturl"
) {
&delete;
}
elseif
&main;
}
so when i call script.cgi?delete=1001 ;the scripts don't refer to delete scripts because $action = "delete=1001"
so i want to send the variable 1001 to the sub delete.
and the link to "script.cgi?delete=1001 " is in a html page, i would know if i need to pu <method=post> or something like this in the head of the html
thank you very much
I wish you will understand, it's hard to explain in a text!
# I could click on a link "# bin/script.gci?delete=1001, so this recall the same script
# my trouble is at the head of the script when the cgi
# decide which sub will be start...
$referer = $ENV{HTTP_REFERER};
if (($action eq "checklogin"
&check_login;
}
elsif (($action eq "delete"
&delete;
}
elseif
&main;
}
so when i call script.cgi?delete=1001 ;the scripts don't refer to delete scripts because $action = "delete=1001"
so i want to send the variable 1001 to the sub delete.
and the link to "script.cgi?delete=1001 " is in a html page, i would know if i need to pu <method=post> or something like this in the head of the html
thank you very much
I wish you will understand, it's hard to explain in a text!