Buenas, no se si he puesto el tema en le sitio correcto. El caso es que estoy realizando una web que en una parte lleva un formulario. Varios de los campos son tipo "file". He leido en varios sitios que para que funcione se necesita tener el script Totmail. Pero la cuestion es que no me funciona bien. Creo que el formulario esta bien hecho pero no se si el "pach interprete perl" esta bien. La página la tengo alojada en Hostalia.
Aqui os dejo el código a ver si me podéis ayudar:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>
<script src="http://www.jotform.com/js/form.js?v2.0.644" type="text/javascript"></script>
<style type="text/css">
html,body{height:100%; margin:0;}
.tbmain{
/* Changes on the form */
background: url(http://www.jotform.com/images/styles/style1_bg.gif) #ffffff top repeat-x !important;
}
.left{
/* Changes on the form */
color: #ff5200 !important;
font-family: Verdana !important;
font-size: 11px !important;
}
td.left {
font-family: "Trebuchet MS";
font-size: 11px;
font-weight:bold;
color:#ff5200;
vertical-align: top;
text-align: left;
}
.pagebreak{
font-family: "Trebuchet MS";
font-size: 11px;
font-weight:bold;
color:black;
}
td.right {
font-family: "Trebuchet MS";
font-size: 11px;
font-weight:normal;
color:#333333;
vertical-align: top;
text-align: left;
}
.tbmain{
height:100%;
color:#333333;
background:url(http://www.jotform.com/images/styles/style1_bg.gif) #ffffff top repeat-x;
}
.head{
font-family: "Trebuchet MS";
font-size: large;
font-weight: bold;
color:#ff5200;
vertical-align: top;
text-align: left;
}
.notvalid{
border:2px red solid;
font-family:"Trebuchet MS";
}
.text{
font-family: "Trebuchet MS";
font-size: 11px;
font-weight:normal;
color:#333333;
border:1px #cccccc solid;
background:url(http://www.jotform.com/images/styles/style1_txt_bg.gif) #f6f6f6 top repeat-x;
}
select.other{
font-family: "Trebuchet MS";
font-size: 11px;
font-weight:normal;
color:#333333;
border:1px #cccccc solid;
background:url(http://www.jotform.com/images/styles/style1_txt_bg.gif) #f6f6f6 top repeat-x;
}
.btn{
font-family: "Trebuchet MS";
font-size: 11px;
font-weight:normal;
color:#333333;
border:1px #c6c7ca solid;
background: url(http://www.jotform.com/images/styles/style1_btn_bg.gif) #e4e4e4 top repeat-x;
}
span.required{
font-size: 13px !important;
color: red !important;
}
</style>
<body>
<table width="100%" cellpadding="2" cellspacing="0" class="tbmain">
<tr><td class="topleft" width="10" height="10"> </td>
<td class="topmid"> </td>
<td class="topright" width="10" height="10"> </td>
</tr>
<tr>
<td class="midleft" width="10"> </td>
<td class="midmid" valign="top">
<form enctype="multipart/form-data" method="post" action="http://xxxx.com/cgi-bin/totmail/totmail32.cgi">
<input type="hidden" name="Totmaildestino" value="
[email protected]">
<input type="hidden" name="Totmailasunto" value="Formulario de venta desde la web">
<div id="main">
<table width="520" cellpadding="5" cellspacing="0">
<tr >
<td colspan="2" class="left" > </td>
</tr>
<tr >
<td width="150" class="left" >
<label >nombre</label>
</td>
<td class="right" >
<input type="text" size="20" name="nombre" class="text" value="" id="q8" maxlength="100" maxsize="100">
</td>
</tr>
<tr >
<td width="150" class="left" >
<label>subir1</label>
</td>
<td class="right">
<input type="file" class="text" size="20" name="subir1" id="q9">
</td>
</tr>
<tr >
<td width="150" class="left" >
<label>subir2</label>
</td>
<td class="right">
<input type="file" class="text" size="20" name="subir2" id="q10">
</td>
</tr>
<tr >
<td width="150" class="left" >
</td>
<td class="right">
<input type="submit" class="btn" value="Submit">
</td>
</tr>
</table>
</div>
</form>
</td>
<td class="midright" width="10"> </td>
</tr>
<tr>
<td class="bottomleft" width="10" height="10"> </td>
<td class="bottommid"> </td>
<td class="bottomright" width="10" height="10"> </td>
</tr>
</table>
<script type="text/javascript">
validate("q_form_81620030535");
</script>
</body>
</html>
Esto es el formulario. Y el interprete perl que tengo puesto en el script es "#!/usr/bin/perl -w".
Gracias. Un Saludo