MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

can't pass arguments to Global subroutines ?



******    message to minivend-users from Ryan <rps@williams.com>     ******

Hello. I am trying to use an auto responder sub, (the form_mail example)
and I can not get any values to pass to the sub.

I am passing some literals like form_mail('test','test2','test3', 'etc');

One of the lines in the sub routine says:   return "no receipient" unless $to;
and every time I call the sub I see "no receipient" on the calling page...

I know its not a problem with the email address not being entered, 
because I'm not even trying to use  [value email] yet, just a literal
string with my email address in it, or just a word, anything to
pass the "unless $to" test. But it always fails. 

I tried returning @_, its value was 0, showing that there were
no arguments passed to the subroutine. What am I doing wrong?

Thanks a lot for any help.

-Ryan

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: