Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: artisst
  • Content: Threads
  • Order by date
  1. artisst

    Strip file upload path

    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...
  2. artisst

    Javascript SSI Countdown from 30 or 90 days (user select)

    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...
  3. artisst

    Assigning scalars to template includes

    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 =~...
  4. artisst

    Assigning 2 arrays to scalar

    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'});
  5. artisst

    Multi-file keyword search results

    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...
  6. artisst

    Joining arrays from filehandles

    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 ""}...
  7. artisst

    Assiging HTML text field 2 names

    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 =~...
  8. artisst

    reading and returning 2 files simultaneously

    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...
  9. artisst

    Separate arrays and insert in html placeholders

    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...

Part and Inventory Search

Back
Top