GRacias jorgens y a todos los demás.
EL problema que me queda por resolver es el formulario.
Mi amigo me ha pasado el formulario que tiene en su pagina web.
Lo he retocado poniendo mis datos pero yo no consigo hacer que cuando la gente rellene el formulario me lleguen los datos a mi email.
Os pongo todo mi formulario.
GRacias compañeross
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Formulario</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<SCRIPT language=JavaScript type=text/JavaScript>
<!--
function MM_findObj(n, d) { //v4.01
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)&&d.all) x=d.all; for (i=0;!x&&i<d.forms.length;i++) x=d.forms
;
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' Coloque un e-mail correcto .\n';
} else if (test!='R') { num = parseFloat(val);
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' es necesario.\n'; }
} if (errors) alert('Error:\n'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</SCRIPT>
<META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
<BODY class=body vLink=#800080 link=#32468d bgColor=#ffffff leftMargin=0
topMargin=0 marginwidth="0" marginheight="0">
<SCRIPT language=JavaScript>
function alterError(value) {
if (value<=0.99) {
newPounds = '0';
} else {
newPounds = parseInt(value);
}
newPence = parseInt((value+.0008 - newPounds)* 100);
if (eval(newPence) <= 9) newPence='0'+newPence;
newString = newPounds + '.' + newPence;
return (newString);
}
function showItems() {
index = document.cookie.indexOf("TheBasket");
countbegin = (document.cookie.indexOf("=", index) + 1);
countend = document.cookie.indexOf(";", index);
if (countend == -1) {
countend = document.cookie.length;
}
fulllist = document.cookie.substring(countbegin, countend);
totprice = 0;
itemlist = 0;
for (var i = 0; i <= fulllist.length; i++) {
if (fulllist.substring(i,i+1) == '[') {
itemstart = i+1;
} else if (fulllist.substring(i,i+1) == ']') {
itemend = i;
thequantity = fulllist.substring(itemstart, itemend);
itemtotal = 0;
itemtotal = (eval(theprice*thequantity));
temptotal = itemtotal * 100;
tax = 7;
totprice = totprice + itemtotal + tax;
itemlist=itemlist+1;
document.writeln('<INPUT TYPE="hidden" NAME="Producto'+itemlist+'" VALUE="'+theitem+'" SIZE="40">');
document.writeln('<INPUT TYPE="hidden" NAME="Cantidad'+itemlist+'" VALUE="'+thequantity+'" SIZE="40">')
document.writeln('<INPUT TYPE="hidden"A NAME="ProductoTotal'+itemlist+'" VALUE="'+alterError(itemtotal)+'" SIZE="40">');
} else if (fulllist.substring(i,i+1) == ',') {
theitem = fulllist.substring(itemstart, i);
itemstart = i+1;
} else if (fulllist.substring(i,i+1) == '#') {
theprice = fulllist.substring(itemstart, i);
itemstart = i+1;
}
}
document.writeln('<INPUT TYPE="hidden" NAME="Total" VALUE="'+alterError(totprice)+'" SIZE="40">');
}
function Total() {
document.writeln(alterError(totprice));
}
</SCRIPT>
<TABLE width=600 align=center border=0>
<TBODY>
<TR>
<TD>[contenido no disponible]</TD>
</TR></TBODY></TABLE>
<CENTER>
<TABLE class=body cellSpacing=0 cellPadding=0 width=640 border=0>
<TBODY>
<TR>
<TD>
<DIV align=center><BIG>Registro </BIG></DIV></TD></TR>
<TR>
<TD width="100%">
<HR color=#000000 SIZE=1>
</TD></TR>
<TR>
<TD width="100%" height=3></TD></TR></TBODY></TABLE>
<FORM id=pedido name=pedido
onsubmit="MM_validateForm('Nombre','','R','Apellido','','R','Domicilio','','R','Ciudad','','R','Provincia','','R','COD','','R','email','','RisEmail');return document.MM_returnValue"
action=mailto:[correo eliminado]
method=post>Introduzca la siguiente información y pulse el botón
Enviar <FONT face="Verdana, Arial, Helvetica, sans-serif"
size=2>
<INPUT type=hidden value=[correo eliminado]
name=recipient> <INPUT type=hidden value="Pedido Productos Herbalife"
name=subject> </FONT><INPUT type=hidden value=pedido name=id> <INPUT type=hidden
value=http://www.distribuidornutricional.com/gracias.html name=redirect>
<TABLE class=body cellSpacing=10 cols=2 cellPadding=10 width=503 border=1>
<TBODY>
<TR>
<TD width=158></TD>
<TD width=269></TD></TR>
<TR>
<TD><FONT size=3>Nombre</FONT></TD>
<TD><INPUT id=Nombre size=34 name=Nombre></TD></TR>
<TR>
<TD><FONT size=3>Apellido</FONT></TD>
<TD><INPUT id=Apellido size=34 name=Apellido></TD></TR>
<TR>
<TD><FONT size=3>Dirección </FONT></TD>
<TD><INPUT id=Domicilio size=34 name=Domicilio></TD></TR>
<TR>
<TD><FONT size=3>Ciudad</FONT></TD>
<TD><INPUT id=Ciudad size=34 name=Ciudad></TD></TR>
<TR>
<TD><FONT size=3>Provincia</FONT></TD>
<TD><INPUT id=Provincia size=34 name=Provincia></TD></TR>
<TR>
<TD><FONT size=3>Código Postal</FONT></TD>
<TD><INPUT id=COD size=34 name=COD></TD></TR>
<TR>
<TD><FONT size=3>País</FONT></TD>
<TD><INPUT id=Pais size=34 name=Pais></TD></TR>
<TR>
<TD><FONT size=3>E-mail</FONT></TD>
<TD><INPUT id=email size=34 name=email></TD></TR>
<TR>
<TD><FONT size=3>Teléfono</FONT></TD>
<TD><INPUT id=Telefono size=34 name=Telefono></TD></TR>
<SCRIPT language=JavaScript>
showItems();
</SCRIPT>
<TR>
<TD><FONT size=3>Sugerencias: </FONT></TD>
<TD><TEXTAREA id=Sugerencias name=Sugerencias cols=28></TEXTAREA> </TD></TR>
<TR>
<TD vAlign=top align=left height=21><FONT
size=3>Total:</FONT>
</TD>
<TD vAlign=top align=left>
<SCRIPT language=JavaScript>Total()</SCRIPT>
€ </TD></TR>
<TR>
<TD>Forma de Pago:</TD>
<TD>
<DIV align=center><SELECT id="Forma de pago" name="Forma de pago">
<OPTION selected>Contra reembolso</OPTION>
<OPTION>Transferencia</OPTION> <OPTION>Tarjeta</OPTION> <OPTION>Ingreso
en cuenta bancaria</OPTION></SELECT> </DIV></TD></TR>
<TR>
<TD></TD>
<TD>
<DIV align=center><INPUT type=submit value=ENVIAR name=submit>
</DIV></TD></TR></TBODY></TABLE></FORM>
<HR color=#000000 SIZE=1>
[<A
href="http://www.distribuidornutricional.com/formulario.html"><FONT
size=2> </FONT></A><FONT size=2><A
href="http://www.distribuidornutricional.com/control_de_peso.html">SEGUIR
COMPRANDO</A></FONT><FONT size=2>] | [<A
href="http://www.distribuidornutricional.com/carrito.html">VER
CARRITO </A></FONT>] | [ <A
href="http://www.distribuidornutricional.com/index.html"><FONT
size=2>HOME</FONT></A><FONT size=2> </FONT>] </P>
www.distribuidornutricional.com – Distribuidor Independiente
Herbalife
Tfno: 691 30 84 62 ( 24 horas) /e-mail: [correo eliminado]</P></CENTER></BODY></HTML>