There doesn't seem to be any errors,
but why don't you try to put the names near the '&' w/ space characters
between them:
  print "window.open
(\"professor.php?nome=$nome&curriculo=$curriculo&interesse=$interesse&adicio
nais=$adicionais&publicacoes=$publicacoes";

"Eduardo Kokubo" <[EMAIL PROTECTED]> wrote in message
006d01c119c0$e6bac6a0$a102a8c0@cttmar">news:006d01c119c0$e6bac6a0$a102a8c0@cttmar...
> This is the code. I use print (php) three times but in the end the code is
> generated correctly (another test I'm doing) . I just noticed that the
last
> variable a pass can be checked using if, but the others can't. I also
> changed the name of the variable. instead of $test I use $publicacoes.
>
> <?
> print "<script language=javascript>\n";
> if (!$foto){
>  print "window.open (\"professor.php?nome=$nome & curriculo=$curriculo &
> interesse=$interesse & adicionais=$adicionais & publicacoes=$publicacoes";
>  print "\", \"Professor\", [\"toolbar=no\"]);\n";}
> else{
>  print "window.open (\"f3_professor.php?nome=$nome & curriculo=$curriculo
&
> interesse=$interesse & adicionais=$adicionais & publicacoes=$publicacoes";
>  print "\", \"f3_professor\", [\"toolbar=no\"]);\n";}
>
> print "</script>";
> ?>
> ----- Original Message -----
> From: elias <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 31, 2001 10:42 AM
> Subject: [PHP] Re: window.open (javascript)
>
>
> > can you show us the code that does the
window.open('myfile.php?test=hey')
> > for example ?
> >
> > "Eduardo Kokubo" <[EMAIL PROTECTED]> wrote in message
> > 016e01c119b4$d784d920$a102a8c0@cttmar">news:016e01c119b4$d784d920$a102a8c0@cttmar...
> > 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?
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to