Foros del Web » Programando para Internet » PHP »

recomendar pagina multiples e-mails

Estas en el tema de recomendar pagina multiples e-mails en el foro de PHP en Foros del Web. saludos tengo un error al tratar de ejecutar mi forma ( Parse error: parse error, unexpected T_STRING in /home/coquetit/public_html/php/tellafriend.php on line 14) en mi documento ...
  #1 (permalink)  
Antiguo 13/07/2005, 08:13
 
Fecha de Ingreso: marzo-2002
Mensajes: 9
Antigüedad: 22 años, 1 mes
Puntos: 0
recomendar pagina multiples e-mails

saludos tengo un error al tratar de ejecutar mi forma ( Parse error: parse error, unexpected T_STRING in /home/coquetit/public_html/php/tellafriend.php on line 14)

en mi documento tellafriend.php tengo


Código PHP:
<?PHP

/
# This section removes any nasty tags that the*
# user may have entered in the form fields

strip_tags($friendmail1);
strip_tags($friendmail2);*
strip_tags($friendmail3);*
strip_tags($email);
strip_tags($name);

# This section sends you a notification email when*
# the form is used

// Your email address (for copies to be sent to you)
$emailto "[email protected]";*

// Your email subject text
$esubject "a page has been sent";*

// The email text for copies sent to you
$emailtext "
"
.$name." has used the tell-a-friend form. Their email address is ".$email."

The people they have recommended are:

"
.$friendmail1."
"
.$friendmail2."
"
.$friendmail3."

"
;
# Send the email to you
@mail("$emailto"$esubject$emailtext"From: $email");

## This section sends to the recipients 

// Target page after successful submission
$thankyoupage "thankyou.htm";*

*
//* Change the subject text below to suit
$tsubject "A great site";

*
// Change the text below for the email*
$ttext "
Hi,

A friend or colleague of yours, "
.$name.", whose email address is ".$email." thought you may like to visit our site. ".$name." has used our Tell-a-Friend form to send you this email.

http://www.coquetitas.com

"
;
# This sends the email to the addresses entered
@mail("$friendmail1 $friendmail2 $friendmail3"$tsubject$ttext"FROM: $email");

# After submission, the target URL
header("Location: $thankyoupage");
exit;
?>


En mi documento recommend.htm tengo:

<html>*
<head>
<title>tell a friend</title>
<script language="javascript">
<!--

function reset() {
document.tellafriend.name.value="";
document.tellafriend.email.value="";
document.tellafriend.friendmail1.value="";
document.tellafriend.friendmail2.value="";
document.tellafriend.friendmail3.value="";
}

function validate() {


if (document.tellafriend.friendmail1.value.length==0) {
alert("please enter your friend's email address");
return false;
}

if (document.tellafriend.email.value.length==0) {
alert("please enter your email address");
return false;
}
if (document.tellafriend.name.value.length==0) {
alert("please enter your name");
return false;
}

document.tellafriend.submit()
return true;
}

//-->
</script>
</head>
<body onload="reset()" topmargin="0" leftmargin="0">*
<center>
</center>
<table width="450" cellpadding="0" cellspacing="0" align="center">*
<tr valign="top">*
<td valign="middle" align="center">*
<p>Complete the details below to send our link to your friends.</p>*
<form name="tellafriend" action="tellafriend.php" method="post" onsubmit="return checkfields()">*
<div align="center">
<center>
<table border="0" cellpadding="10" cellspacing="0">
<tr>
<td> *your name:</td>
<td>
<input size="30" name="name" maxlength="45">
</td>
</tr>
<tr>
<td>*your email:</td>
<td>
<input size="30" name="email" maxlength="45">
</td>
</tr>
<tr>
<td colspan="2">
<p align="center">please enter your friend's email addresses:</td>
</tr>
<tr>
<td>*email 1:</td>
<td>
<input size="30" name="friendmail1" maxlength="45">
</td>
</tr>
<tr>
<td>email 2:</td>
<td>
<input size="30" name="friendmail2" maxlength="45">
</td>
</tr>
<tr>
<td>email 3:</td>
<td>
<input size="30" name="friendmail3" maxlength="45">
</td>
</tr>
<tr>
<td colspan="2">
<p align="center">
The email that will be sent will contain your name. <br>
<input onclick="validate();" type="button" value="click here to send">

</td>
</tr>
</table>
</center>
</div>
</form>
</td>
</tr>*
<tr valign="top">*
<td valign="middle" align="center">*
&nbsp;
</td>
</tr>*
</table>
</body>
</html>

que estoy haciendo mal?
  #2 (permalink)  
Antiguo 13/07/2005, 08:16
Avatar de abe_k  
Fecha de Ingreso: diciembre-2004
Mensajes: 286
Antigüedad: 19 años, 3 meses
Puntos: 2
estoy viendo en algunas lineas despues de el ; un *. Quita el asterisco. Ahi esta el problema

__________________
abe_k

Si quieres visitar Andorra, consulta la guia de este pequeño pais y conseguiras toda la información que necesites. La guia del visitante en Andorra
  #3 (permalink)  
Antiguo 13/07/2005, 09:43
 
Fecha de Ingreso: marzo-2002
Mensajes: 9
Antigüedad: 22 años, 1 mes
Puntos: 0
gracias

Se resolvio el problema... es curiosa en dreamwaver no veo esos asteriscos
felicidades eres un master.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 01:09.