Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot sent two variable ...

Status
Not open for further replies.

kusarigama

Technical User
Apr 24, 2002
45
DE
Hi all :),

Does anyone know why I can't send the second variable named "NAME" in my script below ?

Olli

$image_size = getimagesize(trim($pic_big[$mod_num]));

print&quot;<a href=# onClick=\&quot;window.open('bigview.php4?pic_b=&quot;.trim($pic_big[$mod_num].&quot;&name=fotoname&quot;).&quot;','&quot;.phot.&quot;','&quot;.&quot;width=&quot;.$image_size[0].&quot;','&quot;.&quot;height=&quot;.$image_size[1].&quot;')\&quot;>++ view large ++</a>&quot;;
 
try $name instead of &name=fotoname ***************************************
Party on, dudes!
[cannon]
 
Hi KarveR


also not working...

I tried to do another way, but javascript says that there is an error ...

here is the other version.

Olli

<a href=# onClick=window.open('bigview.php4?pic_b=<?echo trim($pic_big[$mod_num]);?>&name=<?echo trim($name_hidden);?>','large','width=<?echo $image_size[0];?>,height=<?echo $image_size[1];?>','scrollbars=no','resizable=no')>++ view large ++</a>
 
try to do this:

$url=&quot;bigview.php4?pic_b=&quot;.trim($pic_big[$mod_num]).&quot;&name=&quot;.echo trim($name_hidden);
echo $url;
<a href=# onClick=window.open('<?=rawurlencode($url)?>','large','width=<?echo $image_size[0];?>,height=<?echo $image_size[1];?>','scrollbars=no','resizable=no')>++ view large ++</a>

check for blankspaces, strange chars, etc.

Everything looks ok. So it's something like that.


Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Hi, ;)

hmmm .. still not working ... It works good without the second variable. I think I'll send that var with the submit button-click ...

Cheers

Olli
 
put the onclick inside double_quotes. Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Hi,

solved the problem :)

<a href=# onClick=window.open('bigview.php4?pic_b=<?echo trim($pic_big[$mod_num]).&quot;&name=&quot;.urlencode($name_hidden);?>','large','width=<?echo $image_size[0];?>,height=<?echo $image_size[1];?>','scrollbars=no','resizable=no')>++ view large ++</a>

thanx - after all ;)

cheers
Olli
 
i always mistake those two ... rawurlencode and urlencode.

SOrry.... Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top