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 IamaSherpa 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: *

  1. davef101

    blank form field on false return ..

    Sorry to offend you kaht. I was simply offering a solution because i was told you can not change the field once submitted. Yes, it is important on my site that the field clears if the user chooses not to upload the file, as i am using an 'onChange' instance .. anyway, i'll think twice before...
  2. davef101

    blank form field on false return ..

    Sorry, it does work ... sorted now :)
  3. davef101

    blank form field on false return ..

    How about this then (still doesn't work, but you get what i'm trying to do!) <script> function uploadImage(thefield) { input_box=confirm(" Upload / Replace image with this file ? "); if (input_box==true) { document.image.submit(); } else { var DefaultDivArray = new Array(); DefaultDivArray...
  4. 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>...
  5. davef101

    GD.pm Whats wrong with my script?

    i think the error is here, but not sure: my $bildle = newFromJpeg GD::Image($sourcefile, 1) || die "could not open image.";
  6. 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 {...
  7. davef101

    backing up files from a remote server to local pc.

    yes i can FTP, but i want it done automatically. say, end of the month for example
  8. davef101

    backing up files from a remote server to local pc.

    The remote server is Linux, but i don't have access total access, as its a paid web host. The pc is windows xp. I was thinking along the lines of a script running on the server to copy the files to the pc ( ip addy ).
  9. 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?
  10. davef101

    Problem with SORT script ...

    Sorry, yes, it should have read, FileName|CompleteDate|OrderDate|OrderNumber|Price|CustomerName This amount of code was the only way i could see to do it. I'm sure there is a simplier way, i'm new to perl tbh.
  11. davef101

    Problem with SORT script ...

    ahh i've missed out the split in the subroutines .. @a = split(/\|/,$a); @b = split(/\|/,$b); :)
  12. 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 ...
  13. 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
  14. 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 =...
  15. davef101

    Moving files to different directories?

    Thanks :)
  16. davef101

    Moving files to different directories?

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

    Error with my script in IE.

    ok problem fixed .. added: if (value == "") { return value; } as the first line of the function.
  18. davef101

    Deleting file script not working ... ?

    Thanks 1DMF that works fine now .. Tell me, what is the 'glob' statement actually doing, just so i fully understand.
  19. 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 <...
  20. 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...

Part and Inventory Search

Back
Top