Hi, I'm trying to write a script that will take in a string from an html form, then run an if statement which will compare it to another string and if the two strings are equal, it will generate an html file. Here is code I have so far. What I don't know is the syntax for generating an html file.
#!/user/local/bin/perl -wt
use strict;
use CGI ':standard';
my $agentname;
$agentname = param('agentname');
if($agentname eq 'Joe Bob')
{
output to browser joebob.html
}
Any help with this matter would be greatly appreciated.