me da el siguiente error el script:
Parse error: parse error, unexpected ';' in /web/htdocs/www.lyna.com/home/directorio/agregar.php on line 8
este error se genera cuando uso un formulario como este:
<html>
<head>
<title>Formulario</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<FORM NAME="formulario" METHOD="POST" ACTION="agregar.php">
<p>Por favor, rellene este formulario para registrar su empresa en nuestro directorio.</p>
<p><b>Los Campos con<font color="#FF0000"> *</font> son obligatorios a rellenar.</b>
</p>
<table width="61%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td width="41%"><font face="Helvetica, Arial"><b><font color="#FF0000">*</font></b>
</font><b>Sector: </b></td>
<td width="59%"><b>
<select name="sector">
<option>Ayuntamiento</option>
<option>Urgencias</option>
<option>Bares</option>
<option>Restaurantes</option>
<option>Cafeterias</option>
<option>Cines</option>
<option>Tiendas de ropa</option>
</select>
</b></td>
</tr>
<tr>
<td width="41%"><font face="Helvetica, Arial"><b><font color="#FF0000">*</font></b>
</font><b>Nombre Empresa:</b></td>
<td width="59%">
<input type="text" name="empresa" maxlength="50" size="50">
</td>
</tr>
<tr>
<td width="41%"><font face="Helvetica, Arial"><b><font color="#FF0000">*</font></b>
</font><b>Dirección:</b></td>
<td width="59%">
<input type="text" name="direccion" size="50" maxlength="50">
</td>
</tr>
<tr>
<td width="41%"><font face="Helvetica, Arial"><b><font color="#FF0000">*</font></b>
</font><b>E-mail:</b></td>
<td width="59%">
<input type="text" name="email">
</td>
</tr>
<tr>
<td width="41%"><font face="Helvetica, Arial"><b></b> </font><b><font face="Helvetica, Arial"><b><font color="#FF0000">*</font></b></font>
Teléfono</b></td>
<td width="59%"> (
<input type="text" name="prefijo" size="5" maxlength="3" value="953">
)
<input type="text" name="numero" size="8" maxlength="6">
</td>
</tr>
</table>
<br>
<table width="93%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td colspan="4">
<div align="center">
<input type="submit" name="enviar" value="Click para enviar">
</div>
</td>
</tr>
<tr>
<td colspan="4">
<div align="center">
<p> </p>
<p><a href="../php/index.php"><img src="../imagenes/VOLVER.gif" width="82" height="30" border="0"></a>
</p>
</div>
</td>
</tr>
</table>
<p align="left"> </p>
</form>
</body>
</html>