is there a way of running a subroutine that is only activated when i press a button on my website? ... a side note ... the webpage is not the same as the webpage that called the perl code.
I'm not sure I fully understand your question. The button will need to be a form that calls something, if that form calls a perl script sure. Or are you trying to share a subroutine between two different scripts?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
no i mean that my 'index.htm' calls the perl program ... right? is there a way that i can make a subroutine inside my perl that would only be activated once i pressed submit on a different sub of my webpage ... ex.'productinfo.htm' or would i have to create a new perl program for each form?
good.. cause it's very easy.. look up CGI module at cpan.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
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.