<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<style type="text/css">
@import url('css.css');
</style>
<script type="text/javascript">
function invia(valore) {
document.ilForm.gallery.value=valore;
document.ilForm.submit();
}
</script>
</head>

<body>
<?
<table>
<tr>
$gallery=$_GET['gallery'];
if($gallery==='BeatPark050805'){
echo('<td id="contenutoTD2TR1TD2" align="center" valign="middle">');
echo('<a href="#" onclick=javascript:invia("BeatPark050805") target="_self">');
echo('

d f g h a s d f g h j d f g h </p>');
echo('</a> ');
echo('<form name="ilForm" action="montaggiophotogallery.php" method="get">');
echo('<input type="hidden" name="gallery" value="" >');
echo('</form>');
echo('</td>');
echo('</tr>');
echo('</table>');
}
?>

</body>
</html>


da questo codice vedete che ho integrato del codice javascript dentro php, pero questo mi da problemi....sapresti dirmi il modo corretto affinche ilcodice javascript possa funzionare all'interno di una struttura php? vi ringrazio