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

    Adding number behind variable

    I have the following command which could not work. I need to add the number "1" behind the variable. if ($line =~ /(SPEC:)(\w{2})/){ $line=~s/(SPEC:)(\w{2})/$1$21/; } print OUT ("$line");
  2. omoo

    loop through 20 variables

    Hi, I have the following code to validate the fields of a form. I have 20 of such field (filesize1, filesize2,...,filesize20). Can anyone help to advise me on what to add to this code so that it can loop through all the 20 variables? Bascially, I need to change the filesize variable so that it...
  3. omoo

    Multiple insertion if textbox is not blank

    I have 6 textboxes where user can input data (or can leave it blank). I need to insert all the data (if not blank) into the database. How should be SQL query be like? insEntrydate = pd(DAY(date()),2) & "." & pd(MONTH(date()),2) & "." & pd(YEAR(date()),2) insOwner = Request.Form("txtselOwner")...
  4. omoo

    4 or more dynamic dropdown lists

    Hi, I have found in the forum examples or 2 dropdown lists and 3 dropdown list. Does anyone have any idea how to do 4 or more dropdown list? I tried to modify it from an example script found here but failed. This is what I have done after modification: <% Function QuadLinkedList(oCon...
  5. omoo

    Editing contents of a file with the contents of another file

    Hi, I am not sure how to start doing this so I hope to get some advice as to how to start. I have 2 files. The source file contains data that I needed is in columns delimited by ";". For example, in this format: "CONTINENT","COUNTRY","CITY","ID" "asia","japan","tokyo","123"...
  6. omoo

    dynamic drop-down list

    Hi, I have the following forms which allow the user to input the blank fields by choosing the value from dropdown list(existing data in database) or manually input the data in the blank field. I need to do a dynamic drop-down list where after I choose the value in the 1st drop down list, the...
  7. omoo

    create file with same filename but zero contents

    Hi, I need to create a file with the same filename as another file in another directory but without the contents. For example, I have: originaldirectory/oldfile.zip size:1234kb I need to create: newdirectory/oldfile.zip size:no contents - 0kb
  8. omoo

    Check if filename is in directory

    Hi, I have 2 directories, 1st dir with actual files and the 2nd dir with files with zero contents. What command in unix can I use to check for every file in 2nd dir, whether there is a matching filename in 1st dir.If no matching, delete it; if yes, go to next file. For example, 1st dir...
  9. omoo

    Script problem and syntax error

    Hi I have the following script and have problem debugging the problems. The function of this script is to make sure the entire file is being received (the filesize of a data is not changing after 20 seconds) and start moving the file to another directory. This script should be started every...
  10. omoo

    Comparing items in 2 files

    Hi, I have 2 files with contents in them and I need to compare each item in each file. File1: item4 item5 File2: item2 item3 item5 item6 The items names can be of different lengths. If the items in the File1 are not in File2, delete the missing item in File1. The resulting File1 in the...
  11. omoo

    How to stop table from resizing when browser resize

    Hi, I have a table with values in each cells but I do not want the size of the table to become smaller when I resize the window browser smaller. Especially when I resize the vertical part of the window browser, the table will move in and become thinner too. How can I do this?
  12. omoo

    Validate numerical value

    Hi, I have the following java function that validate the form for numerical values: function validate_numeric(field, alerttxt) { with (field) { var strValidChars = "0123456789"; var strChar; var blnResult = true; for (i = 0; i < value.length && blnResult == true; i++) {...
  13. omoo

    Parsing values and inserting records problem

    Hi, I am running the 1st script after a form has been submitted. <% DIM insNAME, insYEAR, insRATING insNAME = Request.Form("txtselName") insYEAR = Request.Form("txtselYear") insRATING = Request.Form("txtselRating") sqlcheck="select * from subdb_subcon_rating WHERE NAME LIKE '"&insNAME&"' AND...
  14. omoo

    Copy values from drop-down list to textbox

    I have the following form with 2 columns in each line. 1st column is a empty text box which allow user to key in text and the 2nd column is a drop-down box which allow user to choose the existing records from database. I need to copy the selected record from the drop-down box to the empty...
  15. omoo

    Help to find error (alert box not appearing)

    I have the following code but the alert pop up did not appear when I leave the compulsory fields empty. Everything looks OK to me because it was working some time ago but I am not sure if I changed something and it can't work now. Can someone please point out the error to me? <html> <font...
  16. omoo

    Help to find error (Alert box not appearing)

    I have the following code but the alert pop up did not appear when I leave the compulsory fields empty. Everything looks OK to me. Can someone please point out the error to me? <html> <font face=tahoma size=3> <script type="text/javascript"> function validate_required(field,alerttxt) {...
  17. omoo

    Putting VBscript value in ASP

    Hi, I posted this in another thread but realise the title shd change so I posted this problem with another title: The "returnvalue" in the VBscript could not be parsed to the ASP if-else statement. Anyone can help? <% DIM NAME, YEAR, RATING, returnvalue NAME = Request.Form("NAME") YEAR =...
  18. omoo

    Problem with updating data

    I have the following script which insert the data after the user choose yes or no. But when I click on no, the script still insert the data. I could not find out the reason why. Anyone can help? <% DIM NAME, YEAR, RATING NAME = Request.Form("NAME") YEAR = Request.Form("YEAR") RATING =...
  19. omoo

    Blank txtbox - allow user key in new values or select frm existing rec

    I need a blank textbox which allow user to select a list of existing records in the database. But if the desired value is not in the database, the user can key in the new value in the blank textbox. This value is to be inserted into the database. I can use "select" to list the values and use...
  20. omoo

    Blank txtbox - allow user key in new values or select frm existing rec

    I need a blank textbox which allow user to select a list of existing records in the database. But if the desired value is not in the database, the user can key in the new value in the blank textbox. This value is to be inserted into the database. I can use "select" to list the values and use...

Part and Inventory Search

Back
Top