Thanks for not letting me give up on this.
It wasn't working because of a binary transfer. Yeah, yeah go ahead and laugh, I deserve it...
If anyone is curious or wants to criticize it, here is my script below:
#!/usr/local/bin/perl
require "cgi-lib.pl";
$PASS = '/.Admin/.htpasswd';
$valid =...
Hello all,
I am trying to write a very simple password program (it isn't being used for any important data) that uses the .htpasswd file (so I don't have to maintain two password files for users). So I need a way to convert the password the user types in into the .htpasswd hash either before it...
Hello,
I ahve just setup a new spam filter, dspam, for our mail server. One of the features is the ability to forward missed messages back to the server to retrain the filter. So what I would like to do is have messages put into a specific folder (a spam folder) automatically redirected back...
For those interested here is the code. The HTML for presentation is replaced with <HTML>.
#!/usr/local/bin/perl
require "cgi-lib.pl";
&ReadParse(*input);
$in_co = $input{Company};
$in_pn = $input{PN};
$in_pn2 = $in_pn;
while($in_pn2 =~ m/(\.|\,|\+|\-|[a-z])/) {
$in_pn2 =~ s/(\.|\,|\+|\-)//...
Sure thing!
Currently the user can input the part number with almost any punctuation they want. The search copies the number and then removes the punctuation so only the alphanumerics are left. Then compares to the list. I will still ignore punctuation (because there is no telling how a user...
Actually, it isn't running on a SQL database. It is running out of a simple text file with a PERL script doing the searching. The text file is setup like:
CompetitorsPN,OurPN
CompetitorsPN,OurPN
CompetitorsPN,OurPN
etc...
The script just reads a line, splits at the comma, compares the...
Hello folks,
I'm sort of new at this, so bare with me. I have a search function on my website for a part number cross reference and I'd like to add the capability to use regular expressions in the search. Right now the user must type the search string almost exactly as it is in the database...
This explanation is a bit long, sorry. I have a index page with an iframe and a nav bar with links to other pages and links to change the content of the iframe. So when I go to one of the other pages then select one of the links that changes the content of the iframe, the iframe is on a...
As the subject says, I have a page that needs to run differently if the page is loaded by a link or if it is loaded by the back button on the browser. I want to test for this in the Javascript.
Pseudocode:
if (loaded by back button) {
Do this;
}
else if {
Do this instead;
}
Any ideas?
-Carl
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.