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 Chriss Miller 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: ibjdt
  • Order by date
  1. ibjdt

    pattern match - find exact string in db line

    i am reading a flat text file to an array and then looking at each line for a string. I want to perform an operation if i find the exact string $string = abc; if ($line =~ /$string/) { do soemthing } however, this will find abcd and zabc. i only want to allow ::abc:: ::abc| |abc| |abc...
  2. ibjdt

    dropdown menu mods

    i found the menu code below. the original code dropped down sub-menus onmouseover. i changed to onclick and would like to change further so once any menu bar item is clicked, all menus will drop down onmouseover (like the menu bar of windows programs). i attempted several things (the most...
  3. ibjdt

    validate number syntax

    i am trying to validate a price field as any number of numerals (but not required like $.99) followed by a decimal (but no required like $9)followed by 1 or 2 numerals (but not required like $9 or $9.). i start by removing leading and trailing white space and stripping spaces, commas and $...
  4. ibjdt

    2 problems uploading files - Image::Size and $CGI::POST_MAX

    in the image width code - i only alot 100 pixels for image width so i restrict image width to 100 if it's actually > 100. if width < 100 i allow the width to be whatever it actually is. i could use $w = $width; $w = 100 if ($width > 100); then always include width = $w in the img tag...
  5. ibjdt

    2 problems uploading files - Image::Size and $CGI::POST_MAX

    ...i found the problem with Image::Size i forgot to include the path to the image ($width,$height) = imgsize("/home/.../ad_photos/$image1"); i still have the issue with the file size. thanks.
  6. ibjdt

    2 problems uploading files - Image::Size and $CGI::POST_MAX

    problem1 i use the script below to allow image upload through my site. although i restrict the file size to 20Kb with $CGI::POST_MAX = 1024 * 20; i am able to upload any file size. use File::Basename; $CGI::POST_MAX = 1024 * 20; $safe_filename_characters = "a-zA-Z0-9_.-"; @images =...
  7. ibjdt

    upload multiple images

    let me find a rock to crawl under.... i forgot method=post - aarrrgh! i must have checked the form tag a thousand times - mostly concerned with the 'enctype'. i copied/pasted it from several different sources, re-typed it, used single quotes/double quotes, etc. thanks.
  8. ibjdt

    upload multiple images

    More info.... i added a check to the script to display (on the results page) the upload_filehandle and the image path that shows in the upload form. the path to the image C:/..... doesn't show. i guess it's stripped during form processing. how do i get around that? i'm testing the script in...
  9. ibjdt

    upload multiple images

    i want to allow user to upload up to 4 images so i use the following code i found. i modified it to loop through each image field name and process it if an image was uploaded. the script performs properly except the files on my server are 0 bytes - the file isn't actually getting uploaded...
  10. ibjdt

    validate form text boxes

    i have a data table containing sometimes hundreds of rows - each with it's own 'edit' link. the link contains an onclick call to javascript to show a div in the next table row. function make(item){ document.getElementById(theDIV).innerHTML = '<form name=invEdit'+item+' onSubmit="return...
  11. ibjdt

    evaluating time regardless of time zone

    i want to show 4 messages to my site users concerning my product shipping times: Saturday and Sunday US EST - no shipping Prior to 8 am US EST - Shipping not currently available After 12 noon US EST - call immediately if shipping required today After 3:30 pm US EST - shipping is no longer...
  12. ibjdt

    checkbox validation

    thanks again. your code may have accomplished the same thing, but i wasn't seeing it. however, it did get the thought juices flowing and i came up with this for (i=0;i<totalOptions;i++) { if (document.myForm5.elements[i].checked == true) { if (document.myForm5.elements[i].value ==...
  13. ibjdt

    checkbox validation

    thanks for the quick response. while testing it further i realized what's happening - it's based on something i left out. my base application is the form, but i have a 'div' tag inside the form. there is a js sort function that re-writes the div based on dropdown selections so while i start...
  14. ibjdt

    checkbox validation

    i have a form with 10 checkboxes <INPUT type="checkbox" value=1>..... <INPUT type="checkbox" value=10> i have a validation where if checkbox 10 is checked, extra info is displayed versus when it is not checked for (i=0;i<totalOptions;i++) { if (document.myForm5.elements[i].checked...
  15. ibjdt

    MIME::Lite attachments

    i couldn't find where the file was being uploaded to so i used the following code to save the file where i want it - i remove the file after the email. $file=~m/^.*(\\|\/)(.*)/; # strip the remote path and keep the filename my $name = $2; $path = "../../ads/$name"; open(LOCAL, ">$path") or...
  16. ibjdt

    MIME::Lite attachments

    i received this error: Software Error: filename.gif: not readable notice that the filename doesn't include the entire path. this is the problem. after investigation i found that from the initial upload form, the value of the filename is being passed to the script as only the filename -...
  17. ibjdt

    MIME::Lite attachments

    thanks for the info. in following your advice i came up with the code below, but get a 500 error and not the thank you page. if i remove the attachment portion of the code, the code works fine - that is it sends the email with correct info (no attachment of course) and goes to the thank you...
  18. ibjdt

    MIME::Lite attachments

    the following code works for a single attachment as defined in the script (Type => 'application/pdf'). my $msg = MIME::Lite->new(From => email@email.com', To => email@email.com', Subject => 'My File Tester', Type...
  19. ibjdt

    counting recurring items in a DB

    i have a flat file with this configuration customerID::itemCode::month.yr::#ofSearches the #ofSearches is a running total for each itemCode - by customerID - in the correpsonding month.yr in an admin script i try to extract each itemCode with the total #ofSearches in the current month (for...
  20. ibjdt

    set cookie and redirect

    i found a solution - i don't know if it is technically correct, but it works. - in shtml main page - normal SSI to call 'cookie check' perl script - if cookie - get username and print welcome message - if not cookie - print login form - enter username/password in login form - action calls...

Part and Inventory Search

Back
Top