diff --git a/cgi/cgi_test.pl b/cgi/cgi_test.pl index 1b8e434..dcc6eea 100755 --- a/cgi/cgi_test.pl +++ b/cgi/cgi_test.pl @@ -49,6 +49,7 @@



+

HTML @@ -83,7 +84,7 @@ alert("Please Fill in everything correctly"); } } -document.getElementByID("div1").innerHTML += "" +document.getElementByID("emailbtn").innerHTML += "" function sendEmail() { @@ -106,9 +107,9 @@ function(message) { console.log("Email Status: " + message); if (message == "OK") { - document.getElementByID("div1").innerHTML += "



Email sent - check your junk folder!"; + document.getElementByID("emailbtn").innerHTML += "Email sent - check your junk folder!"; } else { - document.getElementByID("div1").innerHTML += "

" + message; + document.getElementByID("emailbtn").innerHTML += "

" + message; } } );