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
  • Content: Threads
  • 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

    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 =...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. ibjdt

    set cookie and redirect

    can a script print cookies to the header and redirect? i have an shtml page calling a perl cgi script through ssi. the script checks for a sessionID cookie. if not found it displays a login form. the login form points to another cgi script that handles the login, creates a cookie and...
  12. ibjdt

    ajax onsubmit

    i have the form and ajax below. i want the form to use the ajax script to call a perl cgi script to display results to the screen in a div tag. i have it working on other pages, but here when the ajax script finishes, the page refreshes?? <script type="text/javascript"> function...
  13. ibjdt

    session and cookies

    i am working on a login system with session ID and cookies, but i have hit a snag - i think with the logout code (below). the login form accesses the script that shows a success page with 2 links - logout and test. the logout is supposed to clear and delete the session, expires the cookie and...
  14. ibjdt

    first cookie try

    this is my first try at cookies for a psuedo shopping cart. the user logins, is verified and cookies set for username and a crypted version of password. all links on result pages would lead to item selection pages. each time an item is selected another cookie is updated with that info. the...
  15. ibjdt

    session id -just getting started - general questions

    i have a perl based cgi pricing system on my intranet that i would like to develop for an extranet. currently, sales people login to the intranet system to get customer prices. customers get unique pricing depending on several factors so the login lets the program know which pricing to show...
  16. ibjdt

    compare multiple form elements for duplicate info

    i have a form with 5 document attachment fields (upload1, upload2...upload5). onSubmit i would like to compare the value of all 5 fields and alert the user if they have selected the same file 2+ times (as defined by the form field contents being identical in multiple fields). a min of 1 upload...
  17. ibjdt

    sorting A vs AA

    i have a database of technical drawing info including the revision level of the drawing. the revisions go A, B, C...Z then AA...AZ, BA...BZ, and so on. if i sort the db by rev letter as follows: @rev = sort { (split '::', $a, 5)[1] cmp (split '::', $b, 5)[1] ||...
  18. ibjdt

    hash output inconsistant

    thanks in advance for helping. i have a DB with columns 0-10. i also have the following: @1 = ("C", "D", "E"); #possible subset of hash item 1 @2 = ("F", "G", "H"); #possible subset of hash item 2 %type = ( 1=>"A", 2=>"B"); i want to look at each item in the hash and compare to DB...
  19. ibjdt

    file::find not working

    i want to allow users to search documents file names via cgi script. i found some code and modified per below. the script hasn't worked and doesn't appear to actually be accessing the directory. i added a counter and several other print statements to track progress. it only goes through one...
  20. ibjdt

    sorting numbers correctly

    i have a database with information from which i pull a temp file like: c-1 c-2 c-3..... c-10 c-11.... i am using perl to sort and display the temp file like: @doclist = sort { (split '::', $a, 12)[0] cmp (split '::', $b, 12)[0] || (split '::', $a, 12)[1] cmp (split '::', $b, 12)[1] }...

Part and Inventory Search

Back
Top