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 Wanet Telecoms Ltd 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: tsp120
  • Content: Threads
  • Order by date
  1. tsp120

    Loading Perl vars into JavaScript

    I setting up a webpage. The page is written in Perl/CGI but uses JavaScript for a variety of reasons. When the page loads, I would like to perform an SQL statement to find all records in a table and store each tuple into an array. For example, if I had a table with the following columns: id...
  2. tsp120

    refresh page with values

    I really am not sure where to post this. I have a perl script with CGI, HTML and Javascript. The page contains a form with a lot of radio buttons, select boxes and text fields. It reads data for the radio buttons and select boxes from a mysql database. There is one set of radio buttons (with...
  3. tsp120

    Insert Perl variables into MySQL

    I have the following situation. I have a form, written in Perl, CGI, HTML and Javascript. When this form is submitted, a javascript function verifies the validity of the information on the form. If this passes, it calls another Perl, CGI, HTML page which displays the information for the user...
  4. tsp120

    validating form help

    I have a form with multiple drop down boxes. All start with a default value of "-", but once the form is submitted, non can have that value. When this happens, the label for the drop down box gets changed to red. I'd like to put both the label names and drop down box names in arrays, and then...
  5. tsp120

    Using Perl to enable/disable radio buttons

    I am trying to create some functionality on my website. The page is written in Perl/CGI. I have a drop down box that gets loaded with values from a database. This works fine. When a user selects an item from the dropdown box, I want the onSelect function to perform the following function...
  6. tsp120

    Trigger set on time?

    I'm planning a website right now. At a specific time each day (let's just say noon for example), I want to run a couple scripts on the database. From all the research I've done, it doesn't appear that you can set a trigger up to do this. So my question is, what would be the best way to get...
  7. tsp120

    Reading a text file

    Hello. I'm just starting to learn to use Perl and CGI to read a text file and display the information in a webpage. For starters, all I am trying to do is open up the text file and print each line. The text file is located in the same location as the pl file. I have this code...
  8. tsp120

    modify table column

    I expect this should be an easy issue, I just can't find anything on the net to give me a definite answer. I have a table 'sources' with a column 'status'. I believe that the default value for this column is 'N', but I'm not sure. How can I see this? If I do: Desc sources; it does not...
  9. tsp120

    string manipulation

    I have a string that is always 4 characters long. I want to store the last three characters into a different string. I've looked at string manipulation for C on the internet and can't really find anything to do this for me. A basic example would be: If str1 = 3L39 I want str2 = L39 Thanks. :)
  10. tsp120

    removing the last character from a string

    Hi, I'm working on a program where a user inputs a directory name when the program is run. Sometimes when a user inputs the directory they leave a "/" at the end of it. I would like to catch this instance and remove the backslash. So for example someone might input: /home/examples/testDir/...
  11. tsp120

    getting file sizes

    Hi, I need to write a program to search through a directory, or a set of directories, and acquire the file sizes of all directories and files, then display them in a sorted order in Unix. I know how to navigate through directories and such but have no idea how to get the file sizes. Any help...
  12. tsp120

    real simple question

    I have some code in an HTML file that I would like to insert into a PHP file. I want to just include the file name of the HTML file, instead of copying and pasting the code into the PHP file. Basically I'm just looking for a way to include the contents of a file by simply calling the file...
  13. tsp120

    changing a string

    I have a situation where I need to take the first 4 characters of a string and change them. Let's say for instance I have these numbers stored in a string: 123456789 What I want to do is take the 1234 and change it to a 4321 Any idea how to do this? Thanks!
  14. tsp120

    initial values in perl

    I want to be able to run my program in unix in this way: perl filename -p hhc -v 2 Then i want to designate hhc into a variable called '$prefix' and 2 into a variable '$version'. I am under the impression that this is possible. How would I store these values into the appropriate variables...
  15. tsp120

    string matching help

    Are there any good resources for detailed string matching equations? What I need to do is go through files in a directory. The files that I need to pull out contain: following a "/" Any sequence of characters followed by an underscore followed by any sequence of characters, followed by an...
  16. tsp120

    help with an error message

    I'm trying to print out the contents of an array and I am getting the error message: In string, @Lcounter now must be written as \@Lcounter at lam_prog line 118, near "@Lcounter" Does anyone know what this means?
  17. tsp120

    simple question

    Hi, I have a simple problem. I need to search in a string for an underscore and then 4 digits. ie "_1234". I then want to take this block of the string and store it in a variable. Can anyone help me with this? Thanks
  18. tsp120

    Method or Data Member Not Found

    Hi, I'm trying to create a simple report and when I run it on my hard drive it works, but when I put it on the network it does not. When I run it, I get a compile error saying "Method or Data Member Not Found" for the line: dbConnection.Open dbSets where dbConnection is the...
  19. tsp120

    Use vars from Detail section in Report Footer

    Hi, I add up totals in the Detail section of a report, and I wish to use these totals stored in the report footer section of the report. How do I call the Detail variables from the Report Footer? Thanks, Tim
  20. tsp120

    Can't open a query

    Hi, I am trying to just simply create and open a query. But for some reason, it won't work, and gives me an error message saying: Run-time error '91': Object variable or With block variable not set Below is a bit of the code, and where the error occurs. Dim objConn As New...

Part and Inventory Search

Back
Top