[PHP] JavaScript Problem mit Variable

djjlx

---???---
ID: 62937
L
9 Mai 2006
599
21
Hallo zusammen!

So hab ein neues Problem

Hab ein ganz normalses JS für eine POPUP

Code:
	win=window.open("popupverguetung.php?nick='$nick'","POPupVerguetung",settings);
Ich schaffe es nur nicht die Variable $nick zu übergeben!
Es steht dann beim Link immer '$nick' statt der tasächliche Link!

LG
 
Wenn du eine PHP Varibale meinst:
Code:
	win=window.open("popupverguetung.php?nick='<?php echo $nick; ?>'","POPupVerguetung",settings);

Ansonsten:
Code:
	win=window.open("popupverguetung.php?nick='"+nick+"'","POPupVerguetung",settings);
 
Oder kürzer:
PHP:
win=window.open("popupverguetung.php?nick='<?=$nick?>'","POPupVerguetung",settings);

<?=$var?>