Come includere Javascript dentro al Php
Ragazzi come faccio a includere codice js in php...
posto:
Codice PHP:
<?
if ($var != 0)
// qui mi da errore...
echo "
<td width='49%'><a href="javascript:void(0)" onclick="window.open('./file.php?utente=<? echo $_SESSION['utente'] ?>','inviatot','width=480,height=550,left=150,top=150,status=no,toolbar=no,menubar=no,location=no');">Invia</a></td>";
echo '</tr>';
echo '</table>';
?>
codice originale html:
Codice PHP:
<td width="49%"><a href="javascript:void(0)" onclick="window.open('./file.php?utente=<? echo $_SESSION['utente'] ?>','inviatot','width=480,height=550,left=150,top=150,status=no,toolbar=no,menubar=no,location=no');">Invia</a></td>
</tr>
</table>
Grazie