Page 1 of 1

[SOLVED] Using javascript embedded in a php query

Posted: Fri Nov 28, 2003 6:48 pm
by chuckwgn
If anybody knows the correct way to get a "onClick" (javascript) event to work in a php enviroment - All im trying to do is when the customer clicks on the thumbnail, it will display the picture in another window - just using standard Javascript - Check out my echo line below:

Code: Select all

<?php

echo "<td><a href="javascript:;" onClick=" . '"' . "MM_openBrWindow('$rowResult[10]','','width=300,height=300')"."' >
			<img src=$rowResult[10] width='100' height='100'> </td>"; 

?>
*Note:

Thanks for your help, whom ever knows---

| Charlie | Got PHP? |

Posted: Fri Nov 28, 2003 7:09 pm
by microthick

Code: Select all

<?php 

echo "<td><a href="javascript:MM_openBrWindow('".$rowResult&#1111;10]."','','width=300,height=300')"><img src='".$rowResult&#1111;10]."' width='100' height='100'></a></td>"; 

?>

Posted: Fri Nov 28, 2003 7:19 pm
by chuckwgn
Thanks ALOT - That worked -

I tip my hat to you sir.

-Charlie

Posted: Fri Nov 28, 2003 9:11 pm
by microthick
No problem.