Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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=\" +pl\"> Clicca per inserire altra pratica...</a><br>", "<br>Hai inserito<br>", "NumPrt ",em(param('numprt')), hr; }
Log In?

What's my password?
Create A New User
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2017-02-26 13:44 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (373 votes). Check out past polls.