Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2016-07-29 04:49 GMT
Find Nodes?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?

    Results (259 votes). Check out past polls.