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>

above if / else is fine, the problem was a indentation error in another part of the script

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.