Does anyone know of any existing function available, or offer advice on how to implement the following:
Given the time in minutes, how can I convert it onto a time string?
Example:
480 converts to 8:00 AM. 510 converts to 8:30. 525 converts to 8:45. 0 converts to 12:00 AM. This seems simple...
I am prepopulating checkboxes from MySQL. This works just fine. When I go to the form, the values that are stored in the database are in fact prechecked. (Using HTML CHECKED in the checkbox tag). If I select a few more checkboxes, however, and submit, ONLY the new ones that I manually checked...
I am doing an application where I have essentialy a class per table of my mySQL database. I am stuck at a one-to-many and how to implement the classes.
Specifics:
I have a property table (and class), and an apartment table(and class). The apartment table has a foreign key property_id to the...
I pull some HTML from a mySQL DB to put into a text field. The problem is if there is a single quote it thinks its the end of the value attribute for the text field.
So, in my script I want to somehow replace the ' with the ASCII character, but that is goofy too with its perl-ism.
Heres what I...
I have a general "Address" field in a text data set. I need to extract from the general address field specific elements, such as "Address 1", Addy2", City", etc..
The problem is the formatting of that field is tough for this. Occassionay, theres a comma after the building number, occassionally...
This may be long...
Problem - I am dynamically creating some form elements on a page based on prewvious selection.
Step 1 - User clicks an area on a map, Group of checkboxes is created based on selection. name=state id-state. this I have working no problem using a <div> and innerHTML() in that...
I started this thread in the Perl forum, but I thought I'd bring it over here also for further discussion:
i apologize if this is sort of semi-perl related, but I figured the best palce to come.
I'm making the step into OOP for my larger web based apps and would like some advice about how...
i apologize if this is sort of semi-perl related, but I figured the best palce to come.
I'm making the step into OOP for my larger web based apps and would like some advice about how others layout their OO Perl apps. I will be using CGI::Application and all its plugins, etc.
My project now is...
I have 2 tables on a lyric discussion site
Titles
title_id
title_name
title_lyricist
title_lyrics
title_artist
title_entered
And POSTS
post_id
title_id...
i want to do the following. Call a cgi from a form, process and redirect to the referer page. I can do this fine. However, I want to open a new browser window as a confirmation the form was processed? How can I do this with Perl?
Thanks,
Scott
Using:
mySQL
CGI::Applicaion
CGI::Session
Im going to load some app config options from a mySQL table and store them in a session. Using CGI::Application for the whole thing. Can someone suggest a way to access all the options, store them in the session. If the session exists, obviously I dont...
I've been using Perl for a bit, but am just starting to use it with objects. I have a code snippet I'd like critiqued to see if I'm on the right track or havent got a clue. I am using CGI::App, but not sure that should matter. Anyway, here's the code:
sub show_form {
my $self=shift;
my...
I want to implement a shopping cart based on mySQL and CGI Sessions. I want to store the sessions in mySQL with a uniques session id for state maintanence. Here's my question, and I hope I'm not being too thick, though Im sure I am. I'm going to have multiple users (ie web stores) using the cart...
I have looked everywhere for help on this but can't find what I need.
I am creating a flash application to design signs for a co. I will have about 7 clip art images to choose. The user will click one to add to the design panel. then they add some text and choose a color for text and the clip...
I am doing a web-based application for users to design signs. I have been recommended to Flash. What I want is an app that a user goes to, adds some clip art, some text with fonts and colors, etc...and allow the user to drag the objects and position them, and finally save them, either locally or...
I've been assigned to write an online application that allows users to create a design of a sign. The user would pcik a clip art, add some text and choose a font and font color, etc. I want the user to be able to move the clipart and text around to put it exactly where they want. Is Perl capable...
I have to use the university's authentication script (ASP) as part of my authentication process, but the rest of our site is in perl. I want to know how from a perl script, can I go out to the asp script, get a login true or false response, and continue in perl based on the response. Any ideas...
Visitors to our site log in, and when successful we use sessions (Apache::Session::mySQL). I am now writing the logging/stats part of the application and can't decide how to handle this. Is it a bad idea to use the mySQL sessions table to generate reports, or should I create a separate table to...
This started on the mySQL board, but now must be switched to here. Below is a response from a user about checkboxeses:
What I might do with an HTML interface is produce a set of checkboxes with all the possible content, and check by default all those which represent content to which the user...
I have 3 relevant tables. The first is a content table that lists all content available on our site(About 700 entries). the second is an affiliation table which lists all our affiliate institutions (About 30 entries). The third is a content table of contents which matches institutions with which...
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.