underTheRadar has asked for the wisdom of the Perl Monks concerning the following question:
I've already created a sign up page for my website as index.cgi but it would seem that the email address input box cannot accept any input at all.
However, it works just fine when the page is made into an html file.
I've tried using:
  qq|| = caused a 500 internal server error
  qq{} and qq() = the page loads fine but email address box is unable to accept any input.
# Here's the pseudocode print "Content-type: text/html\r\n\r\n"; print qq{ <!DOCTYPE html> <html> <head> </head> <body> <input type="email" name="emailAddress" class="inputBox" placehold +er="Email Address" id="emailBox" pattern="[a-z0-9!#$%&'*+/=?^_`{|}~-] ++(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9] +)?\.)+(?:[A-Z]{2}|com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|mu +seum)\b" required> </body> </html>};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to print an HTML input tag with its regex pattern in Perl CGI?
by haukex (Archbishop) on Mar 29, 2019 at 14:15 UTC | |
|
Re: How to print an HTML input tag with its regex pattern in Perl CGI?
by marto (Cardinal) on Mar 29, 2019 at 14:25 UTC | |
|
Re: How to print an HTML input tag with its regex pattern in Perl CGI?
by RonW (Parson) on Mar 31, 2019 at 04:42 UTC | |
|
Re: How to print an HTML input tag with its regex pattern in Perl CGI?
by karlgoethebier (Abbot) on Mar 29, 2019 at 15:32 UTC |