0

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>
1
Contributor
1
Reply
6
Views
3 Years
Discussion Span
Last Post by Sinnocence
0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.