# ok, the probleme is went i am in the html page of the cgi
# I could click on a link "www.exemple.com/cgi-
# 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 =...
#ok, first I'll explain you the main idea. When a user #click on a button delete (p.s.: they have many button #delete with each a number ( www.exemple.com/member.cgi?#delete=1003 or www.exemple.com/member.cgi?delete=2003 ) #and he was in the user page, so the user is log with a #username and...
#hi,
#
(all this is in the same CGI)
#This line of code is in the &main of my script.
#
#I want to call a sub (&delete) thru this sub(&main) and #send a variable :
<form action="$affmembers?action=delete" method="post">
<tr><td>$login<input type="hidden"...
hi,
when I call my cgi's sub like this : www.exemple.com/cgi-bin/ex.cgi?delete=1003
so I want to send the variable 1003 to the sub delete.
#first, at the top of the scripts when I look which sub is called i can see which is called and wath is the variable, so my trouble is when I want to send...
when I call a sub, I check wich sub is called. When I call www.exemple.com/cgi-bin/exemple.cgi?delete=1001 , I want to give the param 1001 to the sub delete. here my code, I don"t know how to make this . . .
$referer = $ENV{HTTP_REFERER};
if(($action eq "delete") && ($referer =~...
for exemple; if I send a param like /.../exemple.cgi?offer=36
in the sub, I want to check if 36 is in a @table,...
like
@table = (`value1`,`value2`,...,`valueN`)
#I want know if $param = anyone of the @table value
if $param != @table {
#then add it to the table (for exemple)
}
I want also...
How do I send a variable to a subroutine(ex.36) "script.cgi?action=addoffers?36"
Hi,
I want to know how to send a variable to a Subroutines,
exemple: .../exemple.cgi?action=addoffers?36 (where 36 is the variable)
thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.