Ok,
So what I am doing here is, I have a text file that is read in through perl code:
CODE
open (GUESTBOOK, "adamscott_info.txt");
chomp(@guest = <GUESTBOOK>);
close (GUESTBOOK);
foreach $line (@guest) {
@value = split('::', $line);
$age = $value[0];
$boat = $value[1];
$year = $value[2];
$nickname = $value[3];
$wave = $value[4];
$hole = $value[5];
$river = $value[6];
$sponsor = $value[7];
$message = $value[8];
}
The problem is, I am trying to display the value of $boat in the "VALUE" part of an input box like this:
CODE
print "<input type=\"text\" name=\"boat\" size=\"34\" style=\"font-weight:bold;\" value=\"$boat\">";
and here is the webpage that I tried this code out...view it in Internet Explorer and Firefox...there is a difference but I can't figure out how to make the "VALUE" appear in firefox also...it is really weird...any ideas?
http://www.airbornathletics.com/team/webpage_edit.plHere is the text file that goes along with it:
http://www.airbornathletics.com/team/adamscott_info.txtBy the way...so I don't have to post it here is the code for webpage_edit.pl:
CODE
#!/usr/bin/perl
use CGI::Carp qw(fatalsToBrowser); # This line it doesn't seam to make a difference with or without?!?!
print "Content-type: text/html\n\n";
open (GUESTBOOK, "adamscott_info.txt");
chomp(@guest = <GUESTBOOK>);
close (GUESTBOOK);
foreach $line (@guest) {
@value = split('::', $line);
$age = $value[0];
$boat = $value[1];
$year = $value[2];
$nickname = $value[3];
$wave = $value[4];
$hole = $value[5];
$river = $value[6];
$sponsor = $value[7];
$message = $value[8];
}
print "<html>";
print "<body>";
print "<input type=\"text\" name=\"sponsors\" size=\"34\" style=\"font-weight:bold;\" value=\"$boat\">";
print "$wave";
print "</body>";
print "</html>";
Thanks...