Advertisement
Guest User

Untitled

a guest
Aug 6th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.62 KB | None | 0 0
  1. my $cgi_object=new CGI;
  2. print $cgi_object->header('text/html');
  3.  
  4. my @params=$cgi_object->param;
  5.  
  6. my $username=$cgi_object->param("username");
  7. my $password=$cgi_object->param("passwd");
  8. my $fname=$cgi_object->param("fname");
  9. my $lname=$cgi_object->param("lname");
  10. my $address=$cgi_object->param("address");
  11. my $telephone=$cgi_object->param("tel");
  12. my $email=$cgi_object->param("email");
  13.  
  14. if(! @params=>[0]){print "EMPTY"}
  15. print "@params";
  16. print "@params[1]";
  17. $username =~ /(\w+)/;
  18. $email =~ /(.+)@(.+)\.(.{2,4})/;
  19. $password =~ /(.+)/i;
  20. $fname =~ /([\w\s-]+)/;
  21. $lname =~ /([\w\s-]+)/;
  22. $address =~ /([\w\s-]+)/;
  23. $telephone =~ /([\d\s-]+)/;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement