Here is my deal. I have a form in which users upload files. I have an <input type="file" name="uploadfile"> field, which must contain the entire path to the file. I also have an <input type="text" name="filename">, which inserts
the filename only into a database. I need both fields, one with the...
I would like to know if there is a way to get the date of a user's server and store it in a hidden field, and automatically add 30 or 90 days - by user pulldown/radio button selection - to the equation. I would like the script to count down from the time an account was created to the time it...
I have successfully been able to assign separate filehandles to scalers, search and return results, however, both file search results return in both placeholders. I need to assign a $line3 to $main_template =~ s/%%searcresults%%/$pitem/g; and $line2 to $main_template =~...
I would like to know if it was possible to assign 2 arrays - @skeyw and @skeyw2 - to the same scalar so that both arrays contain the same information.
(@skeyw) = split(/ /,$fields{'keywords'});
into perhaps
(@skeyw, @skeyw2) = split(/ /,$fields{'keywords'});
First, thanks for your response. I have not not been able to successfully integrate it into my code. I have however been able to successfully open both files, read them simultaneously and print out independent file content results (keywords not in SIDX, are in SIDX2 by design). I now need to be...
sub normal_search
{
### PERFORM SEARCH
$search_line = $fields{'keywords'};
$icnt = 0;
$toadk = "";
open (SIDX, "$data_dir/search.idx");
open (SIDX2, "$data_dir/search2.idx");
I need to join both files here into @skeyw
my @sidx = <SIDX>;
my @sidx2 = <SIDX2>;
@sidx = grep {$_ ne ""}...
I am trying to assign a single HTML text field 2 names such as 'keywords' and 'search'. I am perl based and use Fcntl.
<CODE>
$main_template =~ s/%%keywords%%/$fields{'keywords'}/g;
$main_template =~ s/%%searcresults%%/$pitem/g;
</CODE>
<CODE>
$main_template =~...
I need to know how to read from 2 tab-delimited flat files with the while statement. The code I have below only reads from the first one, when I change it to SIDX2 it only reads from the second. I need both files to open and hold them in separate array lists.
open (SIDX...
I have read the Q&A section pertaining to arrays, however this example is slightly beyond the scope of the topics discussed.
I need to search 2 flat text files and return the search results in 2 separate columns. 1 column for international, and the other local listings. This search needs to...
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.