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...
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...
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...
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...
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...
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...
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...
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...
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. :)
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/...
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...
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...
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!
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...
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...
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?
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
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...
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
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.