Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by PasPy

  1. PasPy

    script.cgi?delete=1001 and send 1001 to a sub ?

    # 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 =...
  2. PasPy

    A question for a master !

    #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...
  3. PasPy

    "form action" doesn't work with sub with param ??

    #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=&quot;$affmembers?action=delete&quot; method=&quot;post&quot;> <tr><td>$login<input type=&quot;hidden&quot...
  4. PasPy

    Send a variable to a sub

    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...
  5. PasPy

    Problem with call SUB with param

    This is with this line I'va trouble; elsif (($action eq &quot;delete=$argument&quot;) && ($referer =~ &quot;$scripturl&quot;)) { &delete; } #$action = www.exemple.com/cgi-bin/program.cgi? #Here the action&quot; so if I call &quot;www.exemple.com/cgi-bin/program.cgi?delete=1001&quot...
  6. PasPy

    Problem with call SUB with param

    I have problem when I check wich sub is called when they have parameters ? #here the code, it's in the delete and offer sub that I'va trouble, I'm not able to send param, check my code, you will understand, I wish. (my $sub,my $argument) = split /=/,$ENV{QUERY_STRING}; $referer =...
  7. PasPy

    Problem with call SUB with param

    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&quot;t know how to make this . . . $referer = $ENV{HTTP_REFERER}; if(($action eq &quot;delete&quot;) && ($referer =~...
  8. PasPy

    how add a $variable in a @table

    how to add a $variable in a @table @did = (1,2,3); $variable = 4; #the code to have @did = (1,2,3,4) ??? Thank to post
  9. PasPy

    how add a variable in a table

    how to add a $variable in a @table @did = (1,2,3); $variable = 4; #the code to have @did = (1,2,3,4) ??? Thank to post
  10. PasPy

    How check if a $variable is in a @table ?

    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...
  11. PasPy

    How do I send a variable to sub(ex.36)&quot;script.cgi?action=addoffers?36&quot;

    How do I send a variable to a subroutine(ex.36) &quot;script.cgi?action=addoffers?36&quot; 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

Part and Inventory Search

Back
Top