Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

nathanvit's scratchpad

by nathanvit (Beadle)
on Jun 05, 2004 at 07:39 UTC ( #361407=scratchpad: print w/ replies, xml ) Need Help??

#!C:\Perl\bin\perl.exe use CGI qw/:standard/; use DBI; use DBD::ODBC; $user='fax'; $passwd='fax'; $tabella='fax'; $q = new CGI; print $q->header, $q->start_html('Fax'), $q->h1('Inserimento Fax'), $q->start_form, $q->p("Numero Pratica: ", textfield('numprt')), $q->p("Data Arrivo: ", textfield('datain'), "Ora Arrivo: ", textfi +eld('orain')), $q->p("Data Inizio: ", textfield('dataon'), "Ora Inizio: ", textfi +eld('oraon')), $q->p("Data Fine: ", textfield('dataoff'), "Ora Fine: ", textfield +('oraoff')), $q->p("Esito attivita' Lavorazione?", popup_menu(-name=>'esito +', -values=>['ok','respinta'])),p, $q->p("Note: ", textfield('note')), $q->submit("Invia Fax"), $q->end_form, $q->hr, $q->end_html; if (param()) { $dbh = DBI->connect('dbi:ODBC:fax',$user, $passwd) or die "Non rie +sco a connettermi!!\n"; $in=$dbh->prepare("INSERT INTO $tabella VALUES (?, ?, ?, ?, ?, ?, +?, ?, ?)"); $in->execute('333333', '2004-5-1', '2.22', '2004-6-2', '2.22', '20 +05-5-5', '3.33', 'ok', 'note') || die $DBI::errstr; $dbh->commit(); $dbh->disconnect(); print "<br><br> <a href=\"http://dipendenti.finconsumo.it:8082/cgi-bin/enrico. +pl\"> Clicca per inserire altra pratica...</a><br>", "<br>Hai inserito<br>", "NumPrt ",em(param('numprt')), hr; }
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (16)
As of 2015-07-02 11:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (35 votes), past polls