OK -- We're getting close. See what you think? One of the problems still reamaining is escaping "@" in email address. If anyone insterested this is a little c.y.a script I'm creating to track server outages . Thanks again David
#!/usr/bin/perl -w use strict; use DBI; my ($dbh,$sth,@row,$server,$date,$date_closed,$contact,$contact_email, +$contact_phone,$planned,$event,$resolution); print "Enter sever name: "; $server=<STDIN>; chomp($server); print "Enter Date (YYYY/MM/DD): ";$date=<STDIN>;chomp($date); print "Date Closed(YYYY/MM/DD): ";$date_closed=<STDIN>;chomp($date_clo +sed); print "Contact: ";$contact=<STDIN>;chomp($contact); #print "Contact Email: ";$contact_email=<STDIN>;chomp($contact_email); print "Contact Phone: ";$contact_phone=<STDIN>;chomp($contact_phone); print "Planned Event(yes/no): ";$planned=<STDIN>;chomp($planned); ###################################################################### +###### # Define multi-line fields $/ = "^A"; print "Describe Event:\n"; $event=<STDIN>;chomp($event); print "\n"; print "Describe Resolution:\n"; $resolution=<STDIN>;chomp($resolution); ###################################################################### +######## $dbh = DBI->connect("dbi:mysql:sirinfo","rca","rcaS7ay0u7") or die "Nice try buckaroo\n"; $sth = $dbh->prepare("INSERT INTO rca(server,date,date_closed, contact,contact_phone,planned,event,resolution VALUES('$server','$date','$date_closed','$contact +','$contact_phone','$planned','$event','$resoluti on')") or die "No cigar\n"; $sth->execute(); $dbh->disconnect(); exit;

In reply to Followup: Multi-line input fields by david.jackson
in thread Multi-line input fields by david.jackson

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.