P
phal
Hi all
I have a script to save the user input into text file
$q=new CGI;
open (somet,">> saveall.txt" );
$name=$q->param("name"); # king -> user input
$comment=$q->param("comment"); # go to school-> user input
$dd="300/20/500/30:200 4";
print somet "$dd::$name::$comment\n";
when save to the file saveall.txt as the followong only
300/20/500/30:200 4::go to school
I dont know why the name part doesnt exist there after the 4::
it should save this
300/20/500/30:200 4::king::go to school
the code above work if I using only one " : "
print somet "$dd:$name:$comment\n"
I using Perl 5.8.4
I have a script to save the user input into text file
$q=new CGI;
open (somet,">> saveall.txt" );
$name=$q->param("name"); # king -> user input
$comment=$q->param("comment"); # go to school-> user input
$dd="300/20/500/30:200 4";
print somet "$dd::$name::$comment\n";
when save to the file saveall.txt as the followong only
300/20/500/30:200 4::go to school
I dont know why the name part doesnt exist there after the 4::
it should save this
300/20/500/30:200 4::king::go to school
the code above work if I using only one " : "
print somet "$dd:$name:$comment\n"
I using Perl 5.8.4