Get input from HTML form in other document using perl and checking input
问题 I have two seperate perl documents: mailcheck.pl loggingpage.pl Mailcheck prints out a form in html where the user can put in her/his email and checks if the input is a valid email address. Then it calls upon the loggingpage.pl which saves the email in a logfile and gives out information to the user if the email address was successfully stored. These are the two documents: mailcheck.pl: #!/usr/bin/perl use strict; use warnings; print "Content-type: text/html\n\n"; print <<HTML; <html> <head>