Hello people,
I'm trying to write perl-file where you can input for example your name and afterwards it is put out what you put in.
But this program doesn't work. What could be wrong?
Here is the code of this file:
I hope someone can help me.
greetings,
engeldimo
I'm trying to write perl-file where you can input for example your name and afterwards it is put out what you put in.
But this program doesn't work. What could be wrong?
Here is the code of this file:
Code:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<h1>Input-Test</h1>";
print STDOUT "Enter your Name: \a\n";
$name =<STDIN>;
print <<end;
<html>
<head>
<title>Input-Test</title>
</head>
<body>
<form action="$name" method="post">
<input type="text" size="20" name="Name">
</form>
</body>
</html>
end
if ($name){
print "You entered... ", $name, "\n\a";
}
I hope someone can help me.
greetings,
engeldimo