does it?

but i got a parse error message in example1 , while example2 works well.

>or simply declare your variables:
> var $user1,$password1;


example1:

<html>
<? for ($x=0;$x<5;$x++) { echo $x; } ?>
<br><? 
var $testvar;
print "testvar=\"".$testvar."\""; 
?>
<br><br><br><? phpinfo(); ?>
</html>


example2:

<html>
<? for ($x=0;$x<5;$x++) { echo $x; } ?>
<br><? 
if(isset($testvar)){
print "testvar=\"".$testvar."\""; 
}
else{
print "testvar=\""."\""; 
}
?>
<br><br><br><? phpinfo(); ?>
</html>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to