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 TouchToneTommy 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: davef101
  • Content: Threads
  • Order by date
  1. davef101

    blank form field on false return ..

    can you help with this, i'm trying to blank the text field if the cancel button is selected .. <script> function uploadImage(thefield) { input_box=confirm(" Upload / Replace image with this file ? "); if (input_box==true) { document.image.submit(); } else { thefield.value = ""; } } </script>...
  2. davef101

    GD.pm Whats wrong with my script?

    I'm getting a 500 Internal Server error with this script, any ideas? #!/usr/bin/perl use GD; use strict; use warnings; &jpg_resize(); print "Content-type: text/html\n\n"; print "<html><body>Done</body></html>"; exit(); sub jpg_resize {...
  3. davef101

    backing up files from a remote server to local pc.

    how do i go about automatically backing up a directory held on a remote server, to a local pc?
  4. davef101

    Problem with SORT script ...

    I'm trying to sort a pointer file by its contents, which will in turn allow me to display (FileName) in the correct order . The pointer file is as follows .. FileName|CompleteDate|OrderDate|OrderNumber|CustomerName eg. 123456|27|26|123|Jon Doe On the page is a option to select how to sort ...
  5. davef101

    sorting by date

    i have several text files in a directory, all formated like so: Date|27/10/2006 Order Number|123456 First Name|Blah Last Name|Blah etc .. question is, how do i sort and display the contents of each file by day of the month ? Thanks in advance
  6. davef101

    Displaying month name .. problem with script

    I need a script to display each months name .. but this only displays the varable name i.e $month10 .. my $month1 = "January"; my $month2 = "February"; my $month3 = "March"; my $month4 = "April"; my $month5 = "May"; my $month6 = "June"; my $month7 = "July"; my $month8 = "August"; my $month9 =...
  7. davef101

    Moving files to different directories?

    what code would move a .txt file from one directory to another directory on my server ?
  8. davef101

    Error with my script in IE.

    heres my onBlur function to change the first letter of each word to uppercase. function toUpper(value) { var pattern = /(\w)(\w*)/; // a letter, and then one, none or more letters var a = value.split(/\s+/g); // split the sentence into an array of words for (i = 0 ; i <...
  9. davef101

    Deleting file script not working ... ?

    Heres my directory tree: /cgi-bin -/carts -/Temp_ORDERS this_script.cgi this_script: $directory = 'carts'; opendir(DELE, $directory) or die "Can't Open directory"; @TODELETE = readdir(DELE); chdir($directory) or die "Can't Change directory"; foreach $file (@TODELETE) { if (-d...
  10. davef101

    window.print()

    I'm trying to print to a Dymo Label Printer ... can this be done with Javascript?? Is there anyway to alter the layout and format of the print i.e rotate the text to print top to bottom .. Thanks in advance.
  11. davef101

    '+' crashing search script ?!

    Heres my script: $entry{'searchbox'} = "+1"; open(FILE,"SparkPlugPrices.db"); @lines = <FILE>; close(FILE); foreach $line (@lines) { chomp($line); ($P,$D,$PR,$MU,$VatCode,$Weight) = split(/\|/,$line); $LineCount++; $PartNumber[$LineCount] = $P; $PartDesc[$LineCount] = $D; $Price[$LineCount] =...
  12. davef101

    Delete Cookie ..

    Whats wrong with this, it causes a 'Internal Server Error' .. use CGI qw(:all); use CGI::Cookie; my $cookie = $q->cookie ( -name => 'COOKIENAME', -value => '', -path => '/', -expires => '-1d' ); print $q->header(-cookie...
  13. davef101

    Sorting Files By Date

    how do i list files in a directory, sorted by date ? i have a directory of completed order files, which need to be displayed in order of completed date (i.e when the file is created). Thanks in advance.
  14. davef101

    Removing charactors from a string

    i have a string: "16:32:20 19/09/2006" and i want to remove the 19/09/2006 into seperate strings, $day,$mon,$year ... anyone ? Thanks.

Part and Inventory Search

Back
Top