Ver Mensaje Individual
  #6 (permalink)  
Antiguo 23/05/2006, 04:26
bultaco
 
Fecha de Ingreso: septiembre-2003
Mensajes: 12
Antigüedad: 20 años, 8 meses
Puntos: 0
Pues otra vez lo siento. Vamonos para el de CGI ya que es con el que me he liado.
Para ir adelantando decirle a los maestros:

1º. Este es el código del formulario:
Cita:
<form name="form1" method="post" action="/cgi-bin/formmail.pl" enctype="multipart/form-data">
<input type='hidden' name='recipient' value='[email protected]'>
<input type='hidden' name='subject' value='3r Energias y Servicios'>
<input type='hidden' name='redirect' value='3renergiasyservicios.com/gracias.htm'>
<table width="793" height="32" border="0" cellspacing="0">
<tr>
<td width="33">&nbsp;</td>
<td width="756"><p class="Estilo4 Estilo5">Si desea recibir m&aacute;s informaci&oacute;n
sobre Proyectos de Ingenier&iacute;a 63 S.L. ,
rem&iacute;tanos el siguiente formulario cumplimentado o bien ll&aacute;menos
al tel&eacute;fono 91 xxx xx xx&oacute; env&iacute;enos un fax al 91 xxx xx
xx. </p> </td>
</tr>
</table>
<TABLE height=215 cellSpacing=5 cellPadding=0 border=0>
<TBODY>
<TR>
<TD width="114" height=25 align=right><span class="Estilo3"><FONT face=Verdana size=1>Nombre</FONT></span></TD>
<TD width="150" height=25><span class="Estilo4">
<INPUT
style="BORDER-RIGHT: #2e73b4 1px solid; BORDER-TOP: #2e73b4 1px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #2e73b4 1px solid; COLOR: #000000; BORDER-BOTTOM: #2e73b4 1px solid; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #ffffff"
size=25 name = Nombre nombre>
</span></TD>
<TD width="81" height=25 align=right><span class="Estilo4"><FONT face=Verdana size=1><B>Apellidos</B></FONT></span></TD>
<TD width="154" height=25><span class="Estilo4">
<INPUT
style="BORDER-RIGHT: #2e73b4 1px solid; BORDER-TOP: #2e73b4 1px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #2e73b4 1px solid; COLOR: #000000; BORDER-BOTTOM: #2e73b4 1px solid; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #ffffff"
size=25 name = Apellidos>
</span></TD>
<TD width="1">&nbsp;</TD>
</TR>
<TR>
<TD align=right height=25><span class="Estilo4"><FONT face=Verdana size=1><B>Direcci&oacute;n</B></FONT></span></TD>
<TD height=25><span class="Estilo4">
<INPUT
style="BORDER-RIGHT: #2e73b4 1px solid; BORDER-TOP: #2e73b4 1px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #2e73b4 1px solid; COLOR: #000000; BORDER-BOTTOM: #2e73b4 1px solid; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #ffffff"
size=25 name = Direccion>
</span></TD>
<TD align=right height=25><span class="Estilo4"><FONT face=Verdana size=1><B>Localidad</B></FONT></span></TD>
<TD height=25><span class="Estilo4">
<INPUT
style="BORDER-RIGHT: #2e73b4 1px solid; BORDER-TOP: #2e73b4 1px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #2e73b4 1px solid; COLOR: #000000; BORDER-BOTTOM: #2e73b4 1px solid; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #ffffff"
name = Localidad>
</span></TD>
<TD>&nbsp;</TD>
</TR>
<TR>
<TD align=right height=25><span class="Estilo4"><FONT face=Verdana size=1><B>C&oacute;digo
Postal</B></FONT></span></TD>
<TD height=25><span class="Estilo4">
<INPUT
style="BORDER-RIGHT: #2e73b4 1px solid; BORDER-TOP: #2e73b4 1px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #2e73b4 1px solid; COLOR: #000000; BORDER-BOTTOM: #2e73b4 1px solid; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #ffffff"
size=15 name = CodigoPostal>
</span></TD>
<TD align=right height=25><span class="Estilo4"><FONT face=Verdana size=1><B>Provincia</B></FONT></span></TD>
<TD height=25><span class="Estilo4">
<INPUT
style="BORDER-RIGHT: #2e73b4 1px solid; BORDER-TOP: #2e73b4 1px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #2e73b4 1px solid; COLOR: #000000; BORDER-BOTTOM: #2e73b4 1px solid; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #ffffff"
size=25 name = Provincia>
</span></TD>
<TD>&nbsp;</TD>
</TR>
<TR>
<TD align=right height=25><span class="Estilo4"><FONT
face="Verdana, Arial, Helvetica, sans-serif" size=1><B>Pa&iacute;s</B></FONT></span></TD>
<TD height=25><span class="Estilo4">
<INPUT
style="BORDER-RIGHT: #2e73b4 1px solid; BORDER-TOP: #2e73b4 1px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #2e73b4 1px solid; COLOR: #000000; BORDER-BOTTOM: #2e73b4 1px solid; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #ffffff"
size=25 name = Pais>
</span></TD>
<TD align=right height=25><span class="Estilo4"><FONT face=Verdana size=1><B>Tel&eacute;fono</B></FONT></span></TD>
<TD height=25><span class="Estilo4">
<INPUT
style="BORDER-RIGHT: #2e73b4 1px solid; BORDER-TOP: #2e73b4 1px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #2e73b4 1px solid; COLOR: #000000; BORDER-BOTTOM: #2e73b4 1px solid; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #ffffff"
size=25 name = Telefono>
</span></TD>
<TD>&nbsp;</TD>
</TR>
<TR>
<TD align=right height=25><span class="Estilo4"><FONT face=Verdana size=1><B>E-Mail</B></FONT></span></TD>
<TD height=25><span class="Estilo4">
<INPUT
style="BORDER-RIGHT: #2e73b4 1px solid; BORDER-TOP: #2e73b4 1px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #2e73b4 1px solid; COLOR: #000000; BORDER-BOTTOM: #2e73b4 1px solid; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #ffffff"
size=25 name = EMail>
</span></TD>
<TD align=right height=25><span class="Estilo4"><FONT face=Verdana size=1><B>Titulaci&oacute;n</B></FONT></span></TD>
<TD height=25><span class="Estilo4">
<INPUT
style="BORDER-RIGHT: #2e73b4 1px solid; BORDER-TOP: #2e73b4 1px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #2e73b4 1px solid; COLOR: #000000; BORDER-BOTTOM: #2e73b4 1px solid; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #ffffff"
size=25 name = Titulación>
</span></TD>
<TD>&nbsp;</TD>
</TR>
<TR>
<TD align=right height=25><span class="Estilo4"><FONT face=Verdana size=1><B>Experiencia</B></FONT></span></TD>
<TD height=25><span class="Estilo4">
<INPUT
style="BORDER-RIGHT: #2e73b4 1px solid; BORDER-TOP: #2e73b4 1px solid; FONT-WEIGHT: bold; FONT-SIZE: 10px; BORDER-LEFT: #2e73b4 1px solid; COLOR: #000000; BORDER-BOTTOM: #2e73b4 1px solid; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #ffffff"
size=25 name = Experiencia>
</span></TD>
<TD align=right height=25><span class="Estilo4"><FONT face=Verdana size=1><B>C.
Vitae </B></FONT></span></TD>
<TD height=25><input type="file" name="file"></TD>
<TD>&nbsp;</TD>
</TR>
<TR>
<TD align=right colSpan=4 height=34>
<P align=center>
<table width="19%" border="0" align="center">
<tr>
<td width="11%"><div align="center">
<input type="reset" name="Submit2" value="Borrar">
</div></td>
<td width="89%"><div align="center">
<input type="submit" name="Submit" value="Enviar">
</div></td>
</tr>
</table>
<div align="center"></div>
<P align=center><FONT color=#000000> </FONT></P></TD>
<TD>&nbsp;</TD>
</TR>
</TBODY>
</TABLE>
</form>
2º Y esto lo que he modificado en el formmail.pl:

$mailprog = '/usr/lib/sendmail -i -t';
@referers = ('3renergiasyservicios.com','86.1xx.xx.1xx');
@recipients = ('3renergiasyservicios.com','info@3renergiasyservi cios.com');

Lo demás lo he dejado todo tal cual

3º He subido el formmail.pl al directorio cgi-bin del raiz en mi servidor.
4º Cuando le doy a enviar en mi formulario me sale un mensaje de error y en la barra de direcciones me aparece nombredemidominio/cgi-bin/formmail.pl
(Todavia no tengo autorizacion para poner enlaces)

No se que hago mal. Espero me podais ayudar. Muchas gracias