T
TP
hi
this is my HTML page for the movie database
http://web.ics.purdue.edu/~tkhor/newdata.html
i get the function for search and list all movies to work but i dont get the
Add movies to work.
this is my source code for my cgi script
sub addrecord {
$NameText = $form{'NameText'};
$moviedescription = $form{'moviedescription'};
$moviecast = $form {'moviecast'};
$NameText=~s/</\</g;
$moviedescription=~s/</\</g;
$moviecast=~s/</\</g;
&open_file("FILE1",">>",$filename);
&write_file("FILE1",$NameText."|".$moviedescription."|".$moviecast."\n");
close(FILE1);
print"Content-type:text/html\n\n";
print"<html><head><title>Thank You </title></head>\n";
print "<body><br><h3><center>Thank you for adding
information</center></h3>\n";
print "<p>";
print"</body></html>\n";
exit;
}
* how should i modify the code so that i make it work?
* when i click on the show all function on the webpage , it seem that i wont
list the MOvie description ... so how can i fix this....
i am a newbie here with perl and cgi..so any help will highly
appreciate!!!!!!!!
thanks
this is my HTML page for the movie database
http://web.ics.purdue.edu/~tkhor/newdata.html
i get the function for search and list all movies to work but i dont get the
Add movies to work.
this is my source code for my cgi script
sub addrecord {
$NameText = $form{'NameText'};
$moviedescription = $form{'moviedescription'};
$moviecast = $form {'moviecast'};
$NameText=~s/</\</g;
$moviedescription=~s/</\</g;
$moviecast=~s/</\</g;
&open_file("FILE1",">>",$filename);
&write_file("FILE1",$NameText."|".$moviedescription."|".$moviecast."\n");
close(FILE1);
print"Content-type:text/html\n\n";
print"<html><head><title>Thank You </title></head>\n";
print "<body><br><h3><center>Thank you for adding
information</center></h3>\n";
print "<p>";
print"</body></html>\n";
exit;
}
* how should i modify the code so that i make it work?
* when i click on the show all function on the webpage , it seem that i wont
list the MOvie description ... so how can i fix this....
i am a newbie here with perl and cgi..so any help will highly
appreciate!!!!!!!!
thanks