Click to See Complete Forum and Search --> : what is wrong ?


pcollom
10-31-2006, 06:27 AM
Hi guys,

could you help me with this ? I am getting a nice error ...

if ($a1 <> "0") {
<script>window.open('http://www.yahoo.com', 'movies', '');</script>
}


thanks !

pcollom
10-31-2006, 06:30 AM
got it !

if ($a1 <> "0") {
echo "<script>window.open('http://www.yahoo.com', 'movies', '');</script>"
}

pcthug
10-31-2006, 06:44 AM
Yeah, you may also want to put a end of line operator (semicolon) on the end of that echo statement:

if ($a1 != "0") {
echo "<script>window.open('http://www.yahoo.com', 'movies', '');</script>";
}