Skip to content

Commit

Permalink
Removed all changes -_-
Browse files Browse the repository at this point in the history
  • Loading branch information
theolaa committed Jul 31, 2021
1 parent 34e3502 commit 23fe4ca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cgi/bmi_calculator.pl
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
my $query = new CGI();

my %data;
$data{firstname} $query->param('firstname');
$data{firstname}=~s/(<([^>]+)>)//ig;
$data{lastname}=$query->param('lastname');
$data{lastname}=~s/(<([^>]+)>)//ig;
$data{email}=$query->param('email');
$data{email}=~s/(<([^>]+)>)//ig;
$data{firstname} =$query->param('firstname');
$data{firstname}=~s/(<([^>]+)>)/""/ig;
$data{lastname} = $query->param('lastname');
$data{lastname}=~s/(<([^>]+)>)/""/ig;
$data{email} = $query->param('email');
$data{email}=~s/(<([^>]+)>)/""/ig;

# print $query->header;
print "Content-type: text/html\n\n";

if (($data{firstname} eq '') || ($data{email} eq '')) {
print "Missing or Invalid User Data<br>You will be redirected after five seconds<script>setTimeout(function () {window.location = '../'}, 5000)</script>";
print "Missing User Data<br>You will be redirected after five seconds<script>setTimeout(function () {window.location = '../'}, 5000)</script>";

} else {

Expand Down

0 comments on commit 23fe4ca

Please sign in to comment.