in reply to Ghost fill in adobe forms
He Who Must Not Be Named asked if we had any suggestions.
Um, yes. The tired old saw of use strict needs to be brought out. Using warnings would be a good idea. What if one of those variables is undefined and the person submitting the form doesn't notice? Also, from what I can tell, the global variables are apparently being populated with one of your do statements. Ugh. That's a great way to obfuscate the data source and to ensure that your variables are more like to be misspelled. Further, you should factor out common code elements:
# this is too repetitive Tab(); Send("$DueDate"); Tab(); Send("$Period"); Tab(); Send("$Year"); Tab(); Send("$PermitNum");
Instead of the above, try this:
my @vars = ( $DueDate, $Period, $Year, $PermitNum ); foreach ( @vars ) { Tab(); Send( $_ ); }
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (Ovid) Re: Ghost fill in adobe forms
by jcDelta (Initiate) on Jan 03, 2002 at 07:48 UTC | |
by Corion (Patriarch) on Jan 03, 2002 at 17:46 UTC |