Php code on the server which allows whatever getting being inputed in the HTML file to be written onto a text file in my server. #!/usr/bin/perl use CGI::Carp qw(warningsToBrowser fatalsToBrowser); use CGI qw(:cgi-lib :standard); use warnings; my $long = 4.554; my $lat = 3.55; my $time = 4.50; my $name = "shagun"; MAIN: { &ReadParse(*input); #these same strings should be assigned to the form tags "name" in the html file $lat = $input{'latitude'}; $Dirlat = $input{'N/S'}; $long = $input{'longitude'}; $Dirlong = $input{'E/W'}; $wait = ">"; #$time = $input{'time'}; #$name = $input{'name'}; #change these numbers to their ascii values $charlong = chr($long); $charlat = chr($lat); # $charwait = chr($wait); #$chartime = chr($time); #$charname = chr($name); } ; print "Content-type: text/html\n\n"; print "Testing Shaguns page"; print " \n Testing all the input information \n $long $lat $time $name"; open (LOG, ">../shagun-thesis/poslog.txt"); print LOG "$wait$charlat$Dirlat$charlong$Dirlong"; #print LOG "latitude=$lat\n longitude=$long \n time=$time \n name=$name\n"; close LOG; open (HISTLOG, ">>../shagun-thesis/poslog_hist.txt"); #print HISTLOG "latitude=$lat\n longitude=$long \n time=$time \n name=$name\n"; print HISTLOG "$lat\n$long\n$time\n$name\n"; close HISTLOG; print "\n written to a file";