window.open (javascript)
| From: | Eduardo Kokubo | Date: | Tue, 31 Jul 2001 11:35:04 +0000 |
| Subject: | window.open (javascript) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-60385@lists.php.net to get a copy of this message | ||
I passed some vars to another page using window.open and it worked fine (but had to hide the
toolbar). The problem is that wen I check their values like this:
<?php
if ($test){
print "<b>Test: </b>";
print $test;
print "<br><br>\n";}
if ($adicionais){
print "<b>Informações adicionais: </b>";
print $adicionais;
print "<br><br>\n";}
?>
This code always prints Teste and a "0" when it shouldn't print anything.
<?php
if ($test != 0){
print "<b>Test: </b>";
print $test;
print "<br><br>\n";}
if ($adicionais != 0){
print "<b>Informações adicionais: </b>";
print $adicionais;
print "<br><br>\n";}
?>
This one never prints anything. When I use " " or ' ' to check the 0, it happens
the same thing that the first code.
The other vars that don't use if are working fine. Can anybody please explain this?