Ok, so I think I got the PDF::API2 part down. I'll need to create a new PDF using the posted data and place the signature image in, then use the saveas method.
But I'm not finding any way to use GD to create the signature image. Can it take a "screen shot" of sorts and create the image that way?
I have been working on a way to capture a signature on a PDF using a Topaz signature pad and automatically saving the PDF to a network location when a submit button is clicked. The PDF is opening in a browser so clicking "Save" brings up a dialog box to ask where I want to save it and under...
Is there a way to keep a user from re-posting form data if they hit the back button or refresh? What is the best way to deal with this besides using javascript disabling the back button? Can I somehow clear out all form data in a browswer after a form is posted? Thanks.
Ryan
Is there a way to keep a user from re-posting form data if they hit the back button or refresh? What is the best way to deal with this besides disabling the back button? Can I use javascript to clear out all form data from previous pages? Thanks.
Ryan
Thanks Tony, that is what I was looking for. But now I have a new problem. I was doing this:
perlscript.pl >logfile
because I am logging everything that is printed in the script. If I do this:
perlscript.pl 2>logfile
I no longer log that stuff but I do trap the errors. Is there a way to...
How do I log perl errors to a file of my choice when my perl script dies. For example, I am passing a date to the DateCalc method in Date::Manip. If I pass an invalid date, the script dies. If I run it on the command line, I see the error:
ERROR: Invalid year (928)
at...
Can someone tell me a good way for my perl script to know if it is running on a Windows box or a Linux box? I want to do different commands if it is running on Windows. Thanks.
Ryan
Thanks Steve, I will do that right now. I did reduce the file size of my CGI script from 50k to 20k by moving a bunch of subroutines to another file. That seemed to help quite a bit but the server is still choking.
Ok, I sorted by CPU and mysqld-nt.exe is taking up to 95% of the processing power. The perl.exe instances dissapear after about 3 seconds.
I am doing anywhere from 10 to 20 queries on the main page which automatically refreshes every 10 seconds. The queries are written as efficiently as...
Cool thanks I'll give it a shot, but I agree with you. I don't think this is the problem. The server has more than enough horsepower to handle this many page requests. When I look in the task manager under processes, there's like 30 perl.exe's in there. If I restart the mysql service or...
I have an application that uses CGI and DBI. It is very robust and performs a lot of queries and has a lot of traffic. I'm having problems with the CPU of the server staying at 100%. I read online that to speed up my pages I can use parts of CGI and DBI instead of using the whole thing. How...
I have a CGI web page that has a button on it. When you click it, I want to fire off a perl script that updates a bunch of databases. The perl script takes about 4 minutes to run. Currently I am using the system() command to run the script. Doing it this way causes the page to hang while the...
Thanks for the response, guys. It makes sense what you are saying. I tried the code you suggested and it entered the "if" part but printed nothing. Here is what the XML looks like up to the node in question.
<LoanApps>
<LoanUniversal>
<Loan Counter="275317" RecordCounter="1042222">...
I am trying to parse an XML file using XML::Simple. Everything is working fine except when the node has no value. When I do this:
print my $car_vin = $record->{LoanUniversal}->[$i]->{Loan}->{LoanInformation}->{CollateralID};
I get "HASH(0xa1fc9d8)". How can I test if $car_vin has this...
Does anyone know how to access a COM / ActiveX control with Perl? Do I need anything special? Does anyone have an example of this? Thanks for your help...
Ryan
Cool, this looks like what I want to do. I will have to figure out how to access a COM control with Perl, but it shouldn't be too hard. Don't you just have to put the code in with the HTML like JavaScript? I guess I don't quite understand how it works. Does the browser call the COM object or...
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.