Hello,
I need to do hyperlinks with some words in a page generated dynamically with PHP from a mySQL database.
When the user will click on an hyperlink, it will open a popup window with the definition of the clicked word.
To do that, I need to pass the clicked word as a parameter to the popup window.
The code that generates the hyperlink looks as follow :
$theURL="../mots_cle/mot_cle.php?mot=".$mot."&lang=".$lang;
$this->corps=eregi_replace($mot, "<a href = \"javascript:void(0);\" onClick=\"popUpCenteredWindow(value='<?php print $theURL;?>')>$mot</a>",$this->corps);
This doesn't work. 🙁
The code itself is echoed, not the value.
Any suggestion ?
regards
Jean Pierre PICHON