building my first cgi website, here is my problem.
The code below works but when the condition is met it outputs both pages on the same screen
however when the condition is not met it only outputs the Else: statement like its supposed too.
I can't figure out why it prints twice if the condition is met thou/
Thank you guys for your help.
if (condition is met):
print """Content-type:text/html\r\n\r\n
<html>
<head>
<title>pageA.com</title>
else:
print """Content-type:text/html\r\n\r\n
<html>
<head>
<title>pageB.com</title>