jala2005
Usuario Novato
Usuario Novato

Buenas.. quisiera saber si alguien me puede ayudar...

tengo un formulario en una pagina y pues me gustaria que cuando la persona haga click en el boton enviar toda esa informacion llegue a mi email. aqui tengo el codigo espero alguien me pueda ayudar...

<html>

<head>

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">

<title>No Title</title>

<meta name="generator" content="Namo WebEditor v6.0">

<meta name="namo-theme" content="Theme\Home and Kids\Loose leaves">

<style><!--

body { background-color:white; color:#000000; font-family:Arial; }

h1 { color:gray; font-family:Arial; font-size:14; }

h2 { color:black; font-family:Arial; font-size:12; }

p.namo-list { color:gray; font-family:Arial; font-size:12; }

p.namo-sublist { color:black; font-family:Arial; font-size:10; }

table.namo-table { border-left-color:silver; border-top-color:silver; border-right-color:#707070; border-bottom-color:#707070; }

table.namo-table td { border-left-color:#707070; border-top-color:#707070; border-right-color:silver; border-bottom-color:silver; }

table.namo-table th { background-color:silver; border-left-color:#707070; border-top-color:#707070; border-right-color:silver; border-bottom-color:silver; }

span.namo-link, a:link { color:red; text-decoration:underline; }

span.namo-visited, a:visited { color:gray; text-decoration:underline; }

span.namo-active, a:active { color:#FE8B5A; text-decoration:underline; }

li.namo-list1 { list-style-image:url('nav/bullet1.gif'); }

li.namo-list2 { list-style-image:url('nav/bullet2.gif'); }

--></style>

</style>

body { background-color:white; color:#000000; font-family:Arial; }

h1 { color:gray; font-family:Arial; font-size:14; }

h2 { color:black; font-family:Arial; font-size:12; }

p.namo-list { color:gray; font-family:Arial; font-size:12; }

p.namo-sublist { color:black; font-family:Arial; font-size:10; }

table.namo-table { border-left-color:silver; border-top-color:silver; border-right-color:#707070; border-bottom-color:#707070; }

table.namo-table td { border-left-color:#707070; border-top-color:#707070; border-right-color:silver; border-bottom-color:silver; }

table.namo-table th { background-color:silver; border-left-color:#707070; border-top-color:#707070; border-right-color:silver; border-bottom-color:silver; }

span.namo-link, a:link { color:red; text-decoration:underline; }

span.namo-visited, a:visited { color:gray; text-decoration:underline; }

span.namo-active, a:active { color:#FE8B5A; text-decoration:underline; }

li.namo-list1 { list-style-image:url('nav/bullet1.gif'); }

li.namo-list2 { list-style-image:url('nav/bullet2.gif'); }

--></style>

</style>

body { background-color:white; color:#000000; font-family:Arial; }

h1 { color:gray; font-family:Arial; font-size:14; }

h2 { color:black; font-family:Arial; font-size:12; }

p.namo-list { color:gray; font-family:Arial; font-size:12; }

p.namo-sublist { color:black; font-family:Arial; font-size:10; }

table.namo-table { border-left-color:silver; border-top-color:silver; border-right-color:#707070; border-bottom-color:#707070; }

table.namo-table td { border-left-color:#707070; border-top-color:#707070; border-right-color:silver; border-bottom-color:silver; }

table.namo-table th { background-color:silver; border-left-color:#707070; border-top-color:#707070; border-right-color:silver; border-bottom-color:silver; }

span.namo-link, a:link { color:red; text-decoration:underline; }

span.namo-visited, a:visited { color:gray; text-decoration:underline; }

span.namo-active, a:active { color:#FE8B5A; text-decoration:underline; }

li.namo-list1 { list-style-image:url('nav/bullet1.gif'); }

li.namo-list2 { list-style-image:url('nav/bullet2.gif'); }

--></style>

</style><!--

body { background-color:white; color:#000000; font-family:Arial; }

h1 { color:gray; font-family:Arial; font-size:14; }

h2 { color:black; font-family:Arial; font-size:12; }

p.namo-list { color:gray; font-family:Arial; font-size:12; }

p.namo-sublist { color:black; font-family:Arial; font-size:10; }

table.namo-table { border-left-color:silver; border-top-color:silver; border-right-color:#707070; border-bottom-color:#707070; }

table.namo-table td { border-left-color:#707070; border-top-color:#707070; border-right-color:silver; border-bottom-color:silver; }

table.namo-table th { background-color:silver; border-left-color:#707070; border-top-color:#707070; border-right-color:silver; border-bottom-color:silver; }

span.namo-link, a:link { color:red; text-decoration:underline; }

span.namo-visited, a:visited { color:gray; text-decoration:underline; }

span.namo-active, a:active { color:#FE8B5A; text-decoration:underline; }

li.namo-list1 { list-style-image:url('nav/bullet1.gif'); }

li.namo-list2 { list-style-image:url('nav/bullet2.gif'); }

--></style>

body { background-color:white; color:#000000; font-family:Arial; }

h1 { color:gray; font-family:Arial; font-size:14; }

h2 { color:black; font-family:Arial; font-size:12; }

p.namo-list { color:gray; font-family:Arial; font-size:12; }

p.namo-sublist { color:black; font-family:Arial; font-size:10; }

table.namo-table { border-left-color:silver; border-top-color:silver; border-right-color:#707070; border-bottom-color:#707070; }

table.namo-table td { border-left-color:#707070; border-top-color:#707070; border-right-color:silver; border-bottom-color:silver; }

table.namo-table th { background-color:silver; border-left-color:#707070; border-top-color:#707070; border-right-color:silver; border-bottom-color:silver; }

span.namo-link, a:link { color:red; text-decoration:underline; }

span.namo-visited, a:visited { color:gray; text-decoration:underline; }

span.namo-active, a:active { color:#FE8B5A; text-decoration:underline; }

li.namo-list1 { list-style-image:url('nav/bullet1.gif'); }

li.namo-list2 { list-style-image:url('nav/bullet2.gif'); }

--></style>

<script language="JavaScript">

<!--

function namosw_goto_byselect(sel, targetstr)

{

var index = sel.selectedIndex;

if (sel.options[index].value != '') {

if (targetstr == 'blank') {

window.open(sel.options[index].value, 'win1');

} else {

var frameobj;

if (targetstr == '') targetstr = 'self';

if ((frameobj = eval(targetstr)) != null)

frameobj.location = sel.options[index].value;

}

}

}

// --></script>

function namosw_goto_byselect(sel, targetstr)

{

var index = sel.selectedIndex;

if (sel.options[index].value != '') {

if (targetstr == 'blank') {

window.open(sel.options[index].value, 'win1');

} else {

var frameobj;

if (targetstr == '') targetstr = 'self';

if ((frameobj = eval(targetstr)) != null)

frameobj.location = sel.options[index].value;

}

}

}

// --></script>

<!--

function namosw_goto_byselect(sel, targetstr)

{

var index = sel.selectedIndex;

if (sel.options[index].value != '') {

if (targetstr == 'blank') {

window.open(sel.options[index].value, 'win1');

} else {

var frameobj;

if (targetstr == '') targetstr = 'self';

if ((frameobj = eval(targetstr)) != null)

frameobj.location = sel.options[index].value;

}

}

}

// --></script>

function namosw_goto_byselect(sel, targetstr)

{

var index = sel.selectedIndex;

if (sel.options[index].value != '') {

if (targetstr == 'blank') {

window.open(sel.options[index].value, 'win1');

} else {

var frameobj;

if (targetstr == '') targetstr = 'self';

if ((frameobj = eval(targetstr)) != null)

frameobj.location = sel.options[index].value;

}

}

}

// --></script>

<!--

function namosw_goto_byselect(sel, targetstr)

{

var index = sel.selectedIndex;

if (sel.options[index].value != '') {

if (targetstr == 'blank') {

window.open(sel.options[index].value, 'win1');

} else {

var frameobj;

if (targetstr == '') targetstr = 'self';

if ((frameobj = eval(targetstr)) != null)

frameobj.location = sel.options[index].value;

}

}

}

// --></script>

function namosw_goto_byselect(sel, targetstr)

{

var index = sel.selectedIndex;

if (sel.options[index].value != '') {

if (targetstr == 'blank') {

window.open(sel.options[index].value, 'win1');

} else {

var frameobj;

if (targetstr == '') targetstr = 'self';

if ((frameobj = eval(targetstr)) != null)

frameobj.location = sel.options[index].value;

}

}

}

// --></script>

<!--

function namosw_goto_byselect(sel, targetstr)

{

var index = sel.selectedIndex;

if (sel.options[index].value != '') {

if (targetstr == 'blank') {

window.open(sel.options[index].value, 'win1');

} else {

var frameobj;

if (targetstr == '') targetstr = 'self';

if ((frameobj = eval(targetstr)) != null)

frameobj.location = sel.options[index].value;

}

}

}

// --></script>

function namosw_goto_byselect(sel, targetstr)

{

var index = sel.selectedIndex;

if (sel.options[index].value != '') {

if (targetstr == 'blank') {

window.open(sel.options[index].value, 'win1');

} else {

var frameobj;

if (targetstr == '') targetstr = 'self';

if ((frameobj = eval(targetstr)) != null)

frameobj.location = sel.options[index].value;

}

}

}

// --></script>

</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" background="images/nth_theme_home_and_kids_loose_leaves_bg.gif">

<p align="center"></p>

<p align="center"></p>

<p align="center"><img namo_npi=":EmbededNPI001" src="images/Animador_html_smartbutton21405.gif" border="0"></p>

<p align="center"><u><i><span style="font-size:11pt;"><font color="red">Nos reunimos los dias Martes a las 6:00pm, en el salón padre clemente ubicado a mano derecha de la capilla en coche.</font></span></i></u></p>

<p align="center"></p>

<form name="Animador info" target="_self" method="get">

<p align="left"> Nombres: <input type="text" name="Nombres" size="42"></p>

<p align="left"> Apellidos: <input type="text" name="Apellidos" size="42"></p>

<p align="left"> Telf: <input type="text" name="Telf"> Celular: <input type="text" name="Celular"> Otro: <input type="text" name="Otro"></p>

<p align="left"> Email: <input type="text" name="Email 1" size="35"></p>

<p align="left"> Fecha de Nacimiento: <select name="Día" size="1">

<option>1</option>

<option>2</option>

<option>3</option>

<option>4</option>

<option>5</option>

<option>6</option>

<option>7</option>

<option>8</option>

<option>9</option>

<option>10</option>

<option>11</option>

<option>12</option>

<option>13</option>

<option>14</option>

<option>15</option>

<option>16</option>

<option>17</option>

<option>18</option>

<option>19</option>

<option>20</option>

<option>21</option>

<option>22</option>

<option>23</option>

<option>24</option>

<option>25</option>

<option>26</option>

<option>27</option>

<option>28</option>

<option>29</option>

<option>30</option>

<option>31</option>

</select><select name="Mes" size="1">

<option>Enero</option>

<option>Febrero</option>

<option>Marzo</option>

<option>Abril</option>

<option>Mayo</option>

<option>Junio</option>

<option>Julio</option>

<option>Agosto</option>

<option>Septiembre</option>

<option>Octubre</option>

<option>Noviembre</option>

<option>Diciembre</option>

</select><select name="formselect2" size="1" OnChange="namosw_goto_byselect(this, 'self')">

<option selected value="http://">1960</option>

<option value="http://">1961</option>

<option value="http://">1962</option>

<option value="http://">1963</option>

<option value="http://">1964</option>

<option value="http://">1965</option>

<option value="http://">1966</option>

<option value="http://">1967</option>

<option value="http://">1968</option>

<option value="http://">1969</option>

<option value="http://">1970</option>

<option value="http://">1971</option>

<option value="http://">1972</option>

<option value="http://">1973</option>

<option value="http://">1974</option>

<option value="http://">1975</option>

<option value="http://">1976</option>

<option value="http://">1977</option>

<option value="http://">1978</option>

<option value="http://">1979</option>

<option value="http://">1980</option>

<option value="http://">1981</option>

<option value="http://">1982</option>

<option value="http://">1983</option>

<option value="http://">1984</option>

<option value="http://">1985</option>

<option value="http://">1986</option>

<option value="http://">1987</option>

<option value="http://">1988</option>

<option value="http://">1989</option>

<option value="http://">1990</option>

<option value="http://">1991</option>

<option value="http://">1992</option>

<option value="http://">1993</option>

<option value="http://">1994</option>

</select></p>

<p align="left"> Masculino: <input type="checkbox" name="Hombre"> Femenino: <input type="checkbox" name="Mujer"></p>

<p align="left"> Dirección:</p>

<p align="left"><textarea name="Direccion" rows="4" cols="50"></textarea></p>

<p align="left"></p>

<p align="center"><input type="submit" name="Enviar" value="Enviar"></a><input type="reset" name="Reset" value="Reset"></p>

<p align="center"><img src="images/hr.gif" border="0" class="namo-hr"></p>

<p align="center"><a href="Unirme.html"><img src="images/back.gif" border="0" class="namo-backward"></a></p>

<p align="center"><font size="2">Copyright (c) 2007 My Company. All rights reserved.</font></p>

<p align="center"><a href="mailto:xxx@hotmail.com"><font size="2" color="#0080FF">xxx@hotmail.com</font></a></p>

</form>

<p></p>

</body>

</html>

Avatar Image
@man / @woman
@man / @woman

Muy bonito código... pero ¿para que querremos saber la hoja de estilo, por ejemplo? ¿o cuantas opciones tienes?

Cuando pongáis código ir a la parte importante del mismo.


Así que ¿donde recoges las variables? ¿donde intentas enviar el mail?

jala2005
Usuario Novato
Usuario Novato

veras...ese es el problema no encuentro o mejor dicho no se donde poner las variables...yo uso el namo web editor y use una opcion que supuestamente ase que toda la info de la pagina sea mandada a un email al darle al boton enviar. pero no lo hace y en su html aparece esto:

<p align="center"><a href="mailto:@hotmail.com?subject=Info Animador"><input type="submit" name="Enviar" value="Enviar"></a> <input type="reset" name="Reset" value="Reset"> </p>

no se si es lo que estas preguntando, yo puse el codigo completo por que crei que era necesario todo el codigo...:S...Gracias por su ayuda...

Avatar Image
@man / @woman
@man / @woman

Necesitas un servidor con soporte para php y con soporte para la función mail, en primer lugar.

jala2005
Usuario Novato
Usuario Novato

si, la pagina esta alojada en un servidor que soporta php, pero no se si la funcion mail...

Avatar Image
@man / @woman
@man / @woman
Escrito originalmente por jala2005

si, la pagina esta alojada en un servidor que soporta php, pero no se si la funcion mail...

Pues como no lo preguntes...
sandres0401
Usuario Novato
Usuario Novato

Hola.. quisiera saber que estoy haciendo mal porq no me funciona al momento de enviar el formulario el siguiente es el código.

<!DOCTYPE html>
<html>
<head>


<article id="contactanos">
<form id="contact-form" class="checkform" action="contactosend.php" method="post">
<fieldset>
<legend>Envianos tus comentarios</legend>
<div>
<label for="nombre">Nombre</label>
<input type="text" id="name" class="fade" name="name" required/>
</div>
<div>
<label for="email">Email</label>
<input type="email" id="email" class="fade" name="email" required/>
</div>

<div>
<label for="comentarios">Mensaje</label>
<textarea id="message" class="fade" name="message" cols="31" rows="5" required></textarea>
</div>
<div>
<input type="submit" name="submit_form" class="btn btn-price" value="Enviar Mensaje" /><br/>
</div>
<input type="hidden" name="subject" value="Mensaje desde la página web SONATAPRODUCCIONES.COM" />
<input type="hidden" name="fields" value="name,email,message," />
<input type="hidden" name="sendto" value="sandres0401@gmail.com" />
</fieldset>
</form>

</article>

</body>

</html>

//codigo php

<?php

session_start();

// Email address to send to
$mailto = 'sandres0401@gmail.com' ;

// Email subject
$subject = "Mensaje desde la Página de prueva";

// Where form is sent from
$formurl = "contacto.php" ;

// Error page
$errorurl = "https://pruevapagina.webcindario.com/contacto.php" ;

// Success page
$successurl = "https://pruevapagina.webcindario.com/contacto.php" ;

$name = $_POST['name'] ;
$email = $_POST['email'] ;
$message = $_POST['message'] ;

$http_referrer = getenv( "HTTP_REFERER" );
if (!isset($_POST['email'])) {
header( "Location: $formurl" );
exit ;
}

// Required fields
if (empty($name) || empty($email) || empty($message) || $_SESSION['answer'] != $_POST['answer']) {
header( "Location: $errorurl" );
exit ;
}

$name = strtok( $name, "\r\n" );
$email = strtok( $email, "\r\n" );

if (get_magic_quotes_gpc()) {
$message = stripslashes( $message );
}

// Output message
$messageproper =
"Nombre: " . $name ."\n" .
"Email: " . $email ."\n" .
"Mensaje: " . $message ."\n" ;
mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>\r\nReply-To: \"$name\" <$email>\r\n" );
header( "Location: $successurl" );
exit ;

?>

ATENCIÓN: Este tema no tiene actividad desde hace más de 6 MESES,
te recomendamos abrir un nuevo tema en lugar de responder al actual
Opciones:
Ir al subforo:
Permisos:
TU NO PUEDES Escribir nuevos temas
TU NO PUEDES Responder a los temas
TU NO PUEDES Editar tus propios mensajes
TU NO PUEDES Borrar tus propios mensajes
Temas similares
TemaUsuariosRespuestasVisitasActividad
Por: , el 26/Oct/2008, 04:23
pablinmartinezfc GaFyy Torry_II Ellocodelataquilla MaIcOl52kOct/08
Por: , el 13/Jun/2007, 04:42
cceenntt NoSetup.org Nodws22kJun/07
Por: , el 26/Sep/2003, 01:17
geolander chavp GestionXls Sirquini bienvvenido184kNov/10
Por: , el 14/Jul/2023, 10:02
disegnidacolorarewk0393Jul/23
Por: , el 30/May/2013, 01:08
TheMunSession NoSetup.org22kMay/13