I have a php generated webpage that reads in data from a MySQL database and displays it. One of the database fields being displayed can be moused over and it creates a link. (this is adapted code so I can’t say it ever worked).
In the beginning of the code is this:
[php]
[/php]
Later in the code, is this (this generates the link based on the mouse-over)
[php]print "
<a href=“javascript:smallpopUp(‘sendcmd.php?cmd=$prefix$row[code]’)”>
$row[code]
";[/php]
What is supposed to happen is that when any displayed entry is clicked, the script sendcmd.php is supposed to be called (this part works) and the value of $cmd passed to it. Of course $cmd is empty at the popup window (sendcmd.php).
What do I need to do in order to make this work?[/code]