Need some work done? Post a Project Today
Revise current (or create new) perl file (redeem.pl)that I've uploaded. File should: 1) read gift certificate code entered by site visitor on a prior form (toRedeem) that posts to the redeem.pl file; 2) compare the code to lines in allcode.txt file which is a list of redeemable codes (which is a simple text file with 1 code per line); 3. if code entered does not match, perl page prints an error message to screen; 4.) if code entered is found in allcode.txt, the perl file posts variables to next page in sequence (quiz.pl), allowing visitor to proceed; 5)writes the code entered in a redeemcode.txt file (at bottom or top, doesn't matter); 6) removes/erases the code from the allcode.txt file so that it cannot be used again. Note: current file successfully performs steps 1-4, but does not perform 5 & 6 (ie. deleting the code from the text file or writing the code to another text file). ~~~I have uploaded all files in the sequence. I believe the type of perl used in the original script was based on Craig Patchett's "style". I would like to establish an ongoing relationship with a perl programmer for future projects, large and small.