this is my current code
-----------------------------------------
#!/usr/bin/perl
use CGI qw(:standard);
print "Content-type: text/html\n\n";
$HTML = "message.htm";
open (HTML) or die "Can't open the file!";
print <HTML>;
close (HTML);
my $file = "productselection.txt";
open( LOG...
Allrite, i have a website on which a customer submits there order, say if they wanted 4 of one thing ... the info would be send to a text file.
Currently i have 4 products that i am offering ... so the text file looks something like this.
'2,3,1,0'
is there a way to put a counter on the text...
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 have my site set up, that if i press a submit button the perl code is so post to run. Instead of the code running ... the files tries to get downaloaded onto my computer, ye know ... 'save as or open'.
I have installed activeperl and i'm using abyss server
Any way to solve this?
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.