Parsing variables and HTML

2002-04-16 Thread Daniel Falkenberg
Hello All, I am having a little bit of trouble with HTML and perl. I want to be able to parse variable from some HTML code where a user hits a submit button and the data they entered from that from should be parsed to the next sub. At the moment I am using the following code... $action = param(

Validating form data

2002-04-15 Thread Daniel Falkenberg
Hey All, I am just about to go ahead and start validating form data. I was thinking about tackling it in the following way... $data1 = param("data1"); $data2 = param("data2"); $data3 = param("data3"); $data4 = param("data4"); if ($data1 ne "Whatever") { print "Not equal"; elsif ($data2 ne "T

Validating form date

2002-04-09 Thread Daniel Falkenberg
Hello all, I am just playing around with forms at the moment. What I want to do is have user enter data into form fiels then I want to validate that entered date. So far I can do things as basic as validating if fields contain characters and so forth. But what I want to do is something like th

HTML::Tree with https

2002-03-04 Thread Daniel Falkenberg
Hey all, Is it possible to do the following... I want to get the URL at $inputsite with the following... $inputSite = "mydomain.com/cgi-bin/new-userdatalookup?username=$username&access=Dialu p&month=01&year=2001&loggedin=1"; $tree = HTML::TreeBuilder->new; $address = "https://"; . $inputSite; $

Extract data from WWW page

2002-02-19 Thread Daniel Falkenberg
Hey All, I haven't come to you for a while with a Perl question :) Just wondering if you can give me some insight into this one... Basically I went ahead and started to use HTML::TableExtract. I must say I am having a heap of fun with it. Unfortunatly I am just having a little bit of trouble

Module to fill out form and read data from it

2002-02-04 Thread Daniel Falkenberg
G'day all, Does any one know of any CPAN modules that will fill out a form and read data from it? Basically I need a singe CGI perl script that connects to anther CGI script and fills out the form then gets the results I need. Regards, Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Cookie worries...

2001-10-21 Thread Daniel Falkenberg
this... test test 'path' 0 1157283456 29448914 789082896 29448899 Is there a problem with the third script? It doesn't seem to be populating $user? Any suggestions or comments would be creatly appriciated. Kind regards, Daniel Falkenberg FIRST SCRIPT.cgi - LOGIN PAGE #Norm

Authentication

2001-10-21 Thread Daniel Falkenberg
Hi all, I need some ideas or input as to how I would go about authenicating a single user account that is going to be hard coded into a script I am doing. Basically the user will need to be able to login with a user name and password through a password. Would the best and most efficient way of

DROP DOWN BOXEN

2001-07-25 Thread Daniel Falkenberg
information in a drop downbox correctly? Regards, Daniel Falkenberg sub add_job{ my $sth = $dbh ->prepare( qq{ SELECT username FROM db_users } ) || die $dbh->errstr; ; $sth->execute; my $entries; print<

Tracking drop down box selections...

2001-07-25 Thread Daniel Falkenberg
0 MIN 55 MIN   The above is my HTML. Therefore if the user selects 20 min I want 20 min to be passed onto the next sub in my script. Would I go about it like this... my $selection = param('time_track_minutes'); Any ideas would be appriciated. Regards, Daniel Fal

Testing for truth

2001-07-22 Thread Daniel Falkenberg
a and time. But can't seem to return a true statement if the column contains some words? Any ideas? Thanks in advance. Regards, Daniel Falkenberg -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

FW: Hyperlink to act like submit button...

2001-07-19 Thread Daniel Falkenberg
o show the power of Perl once again! Regards (Any one interested :) ), Daniel Falkenberg -Original Message----- From: Daniel Falkenberg [mailto:[EMAIL PROTECTED]] Sent: Friday, 20 July 2001 8:42 AM To: '[EMAIL PROTECTED]' Subject: Hyperlink to act like submit button... List, I h

Hyperlink to act like submit button...

2001-07-19 Thread Daniel Falkenberg
w I have a hyperlink And I want to pass the unique_id onto the next sub it takes it too. Is this possible and does this make sense? Regards, Daniel Falkenberg -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

HYPERLINK to pars SQL entries to another sub...

2001-07-18 Thread Daniel Falkenberg
erlink in my HTML is incorperated in my perl script. I > want this hyperlink to parse to another sub and then also parse on things > like $entries->{unique_id}... the unique_id of coarse in the new sub. I > can do this with the user selecting certain radio or check boxes and then &

Perl checking for truth in SQL

2001-07-17 Thread Daniel Falkenberg
Hi list, Basically I want to be able to do an SQL query and if the query returns no results I want my script to say Ok your query rerurned 0 results print this message... "Sorry your seach returned no messages". What is my best way of going about this? Would it work similar to this... Do search

Is my script too big?

2001-07-12 Thread Daniel Falkenberg
List, This may sound like a weird question but I am working on a support database using of coarse CGI and perl. The problem is that the script script.cgi is almost 50K big/small? It contains almost 1000 lines of code. I suppso half of the script is HTML, but the script still seems to work fin

SQL: Moving a row from one table to another.

2001-07-09 Thread Daniel Falkenberg
ould like to be able to do the following as well... my $sql = 'INSERT INTO table2 (crud, crud, crid) VALUES ('crud', 'crud', 'crud')' FINISH The second is possbile :) Is the first possible? Thanks in advance.. Regards, Daniel Falkenberg

Deleting rows using checkboxes and PostgreSQL

2001-07-08 Thread Daniel Falkenberg
List, I have come accross a slightly large hurdle in one of my perl scripts. Basically I have a list that prints out some *crud* from a PostgreSQL table. Each row has a checkbox located next to it. I want to be able to have the user select as many of these check boxes as they desire and then pre

SQL problem...

2001-07-08 Thread Daniel Falkenberg
List, Below is my sub where I want to INSERT the following values into a PostgreSQL database that contatins a row that needs some entries updated. Can any one see a problem with the following code? sub complete_final{ my $status = 'COMPLETE'; my $sth = $dbh ->prepare( qq{ INSERT INTO