# javaScript beat PHP :(

**URL:** <https://forum.kirupa.com/t/javascript-beat-php/98055>\
**Category:** Uncategorized\
**Created:** [January 2, 2004, 11:08am UTC](https://forum.kirupa.com/t/javascript-beat-php/98055 "2004-01-02T11:08:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OKtrust](https://avatars.discourse-cdn.com/v4/letter/o/c77e96/32.png) [@OKtrust](https://forum.kirupa.com/u/OKtrust)\
**Post date:** [January 2, 2004, 11:08am UTC](https://forum.kirupa.com/t/javascript-beat-php/98055/1 "2004-01-02T11:08:22Z")

</div>

Hi all, I come back and continuous bug you!  
I’m try to write an effect that when we click cursor on a table, it will link to $linkt and here is my code:

```php

links.php
<? $linkt="hix"; ?>
<table>
<tr>
<td bgcolor="FFFFFF" style="Cursor:Hand" onClick="window.location.href=<? print " '$linkt' "; ?> " onMouseOver="this.bgColor='#f2f2f2'" onMouseOut="this.bgColor='#FFFFFF' ">
-------- test------------
<td>
</tr>
</table>

```

but PHP not work together with javaScript. Can you share me your experience. merci in advance !
