From a320ea07d1d48f5f59cdf53d41aedf0ae852db89 Mon Sep 17 00:00:00 2001 From: arfhad-shaikh Date: Thu, 29 Jul 2021 11:56:09 -0700 Subject: [PATCH] Update cgi_test.pl --- cgi/cgi_test.pl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/cgi/cgi_test.pl b/cgi/cgi_test.pl index 1a2816e..9bd9958 100755 --- a/cgi/cgi_test.pl +++ b/cgi/cgi_test.pl @@ -11,7 +11,9 @@ $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{country} = $query->param('country'); #$data{psw} = $query->param('psw'); #$data{psw_repeat} = $query->param('psw_repeat'); @@ -38,10 +40,10 @@

Please fill in the details to find your BMI.


- + - + @@ -52,8 +54,11 @@ HTML print < -var email="$data{email}" + +var email="$data{email}"; + function calculateBMI() { var weight = document.getElementById("weight").value; var height = document.getElementById("height").value;