I having problem with the newline. For example, whatever I input it just comes out as one line. I have tried "\n", but I just does not seem to be working. I know is something very simple. I just can't figure out? Suggestions, comments are all welcome.
Thank you,
Victor
#!/usr/bin/perl -wT
use strict;
use CGI ':standard';
my $last;
my $first;
my $email;
my $address1;
my $address2;
my $comments;
$last = param("last"
$first = param("first"
$email = param("email"
$address1 = param("address1"
$address2 = param("address2"
$comments = param("comments"
open (FILE, ">> list.txt"
print FILE "$last, $first, $email, $address1, $address2, $comments\n";
close (FILE);
print "Content-type: text/html\n\n";
print "Thank you for submitting your information.\r";
print "The following is what you have entered your\r";
print "Last Name: $last\n First Name: $first\n Email: $email\n Address: $address1\n $address2: \n Comments: $comments \n";
Thank you,
Victor
#!/usr/bin/perl -wT
use strict;
use CGI ':standard';
my $last;
my $first;
my $email;
my $address1;
my $address2;
my $comments;
$last = param("last"
$first = param("first"
$email = param("email"
$address1 = param("address1"
$address2 = param("address2"
$comments = param("comments"
open (FILE, ">> list.txt"
print FILE "$last, $first, $email, $address1, $address2, $comments\n";
close (FILE);
print "Content-type: text/html\n\n";
print "Thank you for submitting your information.\r";
print "The following is what you have entered your\r";
print "Last Name: $last\n First Name: $first\n Email: $email\n Address: $address1\n $address2: \n Comments: $comments \n";