I current have this .cgi which is used to display to a user the products they've selected for purchase.   I am wondering what is the best and most efficient way to obtain this scenerio:   Right now if someone purchases the first motor it is $18 and that displays in the table below but any additional motor is $12 which is where I'm looking for some guidance.   I know the item is a motor based on it's description obtained from fields[2]   Also - individuals have the ability to enter in a quantity obtained from fields[3] so if …

Member Avatar
+0 forum 0

All in the following code snippet - I have this code working without syntax error if a user accesses the page directly they get the message listed in the else statement "This page cannot be accessed directly " - and when the user accesses the page from a post method it e-mail it to the proper e-mail box. However what doesn't show up in the e-mail is any of the variables - example: $order $subtotal $promo $tax $shipping $total - so I get the e-mail but it doesn't have any of the values from my form - so therefore am …

Member Avatar
Member Avatar
+0 forum 1

All, I am trying to a call a fly program which generates dynamic images on a webpage and I'm geting this error -> malformed header from script. Bad header=/usr/home/gump/bin/fly: The main code is as such and I've tried various varaitions of the Content-Type headers to no avail - the simple-lib.pl code which is referred to - I've included as well for reference: #!/usr/bin/perl5 require 'simple-lib.pl'; &flyprog; $output = `$flyprog -i $flytemp`; print "\n\n"; print "Content-Type: text/html\n\n"; print "Content-Type: image/gif\n\n"; print "$output"; #!/usr/bin/perl5 sub flyprog { $flyprog = "/usr/home/gump/bin/fly"; } 1;

Member Avatar
Member Avatar
+0 forum 3

My ISP - upgraded the Apache servers and in doing so - the CGI/Perl script below that worked before since they didn't require use strict now does not - since I uncommented out the use strict - I'm getting two errors - at first I was getting: Global symbol "@allgifs" requires explicit package name errors for each of my variables - which went away once I added these lines: my allgifs; my row; my col; my imagemap; my item; my topLeftX; my topLeftY; my bottomRightX; my bottomRightY; Now I am getting No such class allgifs for each of my variables …

Member Avatar
Member Avatar
+0 forum 2

All, In the code snippet below - I am trying to only send an e-mail if the page is reached via a POST request - the if statement is not being recognized in the CGI code - as when I access the page this is on directly - I get the print statement but I also receive the print after clearing the cache then going to my web form which calls this code. Is something off that is simple with this if statement: if ($ENV{'REQUEST_METHOD'} eq 'POST') { $to = "admin\@mysite.net"; $date = todays-date; &Email &Thanks; &HTML; } else { …

Member Avatar
Member Avatar
+0 forum 1

All, I'm looking for the best practice in regard to a CGI shopping cart - I am working on. What happens is that I have a checkout file that sends an email to our generic mail account and shows a thank you image once someone fills in their information. What happens is that even though the information page has checks that data is filled in - the checkout file if a search crawl hits the page it sends blank info to the generic e-mail box. Therefore to remedy what code can I put on the checkout page so that the …

Member Avatar
Member Avatar
+0 forum 2

i am writing an automation script in Perl which logs into the server and executes various commands and functions.This Perl script mostly uses "send expect statements and for loops " to run the commands. This Perl script is a back end script which i have written. i have to build a GUI kind of thing for the front end. Though we have Perl/Tk for GUI but i seems very difficult to me since i am a beginner in Perl. Please give me suggestions on whether i can implement in perl-CGI ???? should i divide my back end script into separate …

Member Avatar
Member Avatar
+0 forum 1

Shall i create a cgi script with main function command line Argument ? If i can , How can i pass the data to this command line arguments ? And shall i pass Array of data from JavaScript to cgi-script which is created in c++. How many ways are available for Passing a data from a Html Page to cgi-script ?

Member Avatar
Member Avatar
+0 forum 2

The End.