Perdón no lo puse..........
como ves el de arriba es el del formulario y donde se insertan los datos a mysql y aquí es donde aparecen los datos que pusieron en el formulario:::::
Código PHP:
<?php require_once('../../../Connections/peticiones.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$maxRows_peticiones_consultas = 20;
$pageNum_peticiones_consultas = 0;
if (isset($_GET['pageNum_peticiones_consultas'])) {
$pageNum_peticiones_consultas = $_GET['pageNum_peticiones_consultas'];
}
$startRow_peticiones_consultas = $pageNum_peticiones_consultas * $maxRows_peticiones_consultas;
mysql_select_db($database_peticiones, $peticiones);
$query_peticiones_consultas = "SELECT * FROM messages ORDER BY mes_id DESC";
$query_limit_peticiones_consultas = sprintf("%s LIMIT %d, %d", $query_peticiones_consultas, $startRow_peticiones_consultas, $maxRows_peticiones_consultas);
$peticiones_consultas = mysql_query($query_limit_peticiones_consultas, $peticiones) or die(mysql_error());
$row_peticiones_consultas = mysql_fetch_assoc($peticiones_consultas);
if (isset($_GET['totalRows_peticiones_consultas'])) {
$totalRows_peticiones_consultas = $_GET['totalRows_peticiones_consultas'];
} else {
$all_peticiones_consultas = mysql_query($query_peticiones_consultas);
$totalRows_peticiones_consultas = mysql_num_rows($all_peticiones_consultas);
}
$totalPages_peticiones_consultas = ceil($totalRows_peticiones_consultas/$maxRows_peticiones_consultas)-1;
?>
<!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>Centro de Fe y Esperanza Robledo</title>
<link rel="stylesheet" href="../../../css/iglesia/oracion/intersesores.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="../../../css/iglesia/nav.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="../../../css/iglesia/reset.css" type="text/css" media="screen"/>
<link type='text/css' href='css/basic.css' rel='stylesheet' media='screen' />
<link href='http://fonts.googleapis.com/css?family=Raleway:100' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Oswald&v1' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(function() {
$(".vote").click(function()
{
var id = $(this).attr("id");
var name = $(this).attr("name");
var dataString = 'id='+ id ;
var parent = $(this);
if(name=='up')
{
$(this).fadeIn(200).html('<img src="dot.png" align="absmiddle">');
$.ajax({
type: "POST",
url: "up_vote.php",
data: dataString,
cache: false,
success: function(html)
{
parent.html(html);
} });
}
else
{
$(this).fadeIn(200).html('<img src="dot.png" align="absmiddle">');
$.ajax({
type: "POST",
url: "down_vote.php",
data: dataString,
cache: false,
success: function(html)
{
parent.html(html);
}
});
}
return false;
});
});
</script>
</head>
<body>
<div id="top_header_oracion">
<div class="nav_oracion">
<ul>
<li><a href="../../../index.html">inicio</a></li>
<li><a href="../../../html/iglesia/soynuevo.html">¿eres nuevo?</a></li>
<li><a href="../../../html/iglesia/conectate.html">conectate</a></li>
<li><a href="#">oración</a></li>
<li><a href="../recursos/recursos.php">recursos</a></li>
<li><a href="../contacto/contacto.php">contacto</a></li>
</ul>
</div><!--final nav_index-->
</div><!--final top_header_oracion-->
<div class="back_contenido1"></div>
<div class="contenido1">
<div class="need_panel_title">
<div class="need_panel_title_top">Peticiones de oración</div>
<div class="need_panel_title_side"><a href="form_peticiones.php"><p> | nueva petición</p></a></div>
</div><!--final need_panel_title-->
<div class="need_panel_space"></div>
<?php do { ?>
<div class="need_panel_titulo_pray"><p> <?php echo $row_peticiones_consultas['pray_titulo']; ?>...</p></div>
<div class="need_panel_pray">
<div class="need_panel1_peticion">
<blockquote><p><?php echo $row_peticiones_consultas['pray_peticion']; ?>...</p></blockquote>
</div><!--final need_panel1-->
</div><!--final need_panel1-->
<form action="envio.php" name="form_conteo">
<div class="need_panel_datos">
<!--<div class="need_panel1_peticion_orar"><a href="intersesores_espiritual.php"><p>orar por esta necesidad</p></a></div>-->
<input type="hidden" name="conteo_oracion"/><div class="need_panel1_peticion_orar"><div class='up'><a href="" class="vote" id="<?php echo $row_peticiones_consultas['mes_id']; ?>" name="up">Clic para orar | <?php echo $row_peticiones_consultas['up']; ?></a></div></div>
<div class="need_panel1_peticion_cantidad"><p> veces oraron por tí</p></div>
<div class="need_panel1_peticion_autor"><p>| <?php echo $row_peticiones_consultas['pray_nombre']; ?> <?php echo $row_peticiones_consultas['pray_apellido']; ?></p></div>
<div class="need_panel1_peticion_fecha"><p>| <?php echo $row_peticiones_consultas['pray_fecha']; ?></p></div>
</div><!--final need_panle_datos-->
</form>
<?php } while ($row_peticiones_consultas = mysql_fetch_assoc($peticiones_consultas)); ?>
</div><!--final contenido1-->
<div class="back_contenido2"></div>
<div class="contenido2">
</div><!--final contenido2-->
</body>
</html>
<?php
mysql_free_result($peticiones_consultas);
?>
bien entonces la pregunta persiste ¿cómo hago para, aparte de insertar los datos, enviarle un correo al que lleno el formulario? y si notas allí en el formulario hay un input que dice email y es alli en la única parte que obtengo ese dato del usuario ya que no se va a manejar login..........Agradezco tu ayuda.........