
Feb 6th, 2008, 16:45
|
 |
Technical Administrator
|
|
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,790
Thanks: 0
Thanked 2 Times in 2 Posts
|
|
|
Re: Send variable by pressing hyperlink?
That would be because you are creating the function in javascript many times, resulting in it being overridden.
try:
- PHP: Select all
echo "<p>$count.) <a href=\"\" onClick='open_win(".$row['id'].")'> $name </a> \n</p>"; ?> <script type="text/javascript"> function open_win(id) { window.open('http://xxxxxx.com/show_name.php?id='+id,'Page title','height=900,width=850,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no') } </script><br />
|