Jump to content

PHP Help


Boker

Recommended Posts

Oh well i been programming this code but is not working seems the new version of my server do not allow me this form and i think i been complicating myself to much anyone can tell me what i am doing wrong if it is possible i am linking this php to a flash just been all night trying by myself to make it work but seems i can't... help

 

<?php

$de = $HTTP_POST_VARS['de'];
$a = $HTTP_POST_VARS['a'];
$cfisicas = $HTTP_POST_VARS['cfisicas'];
$cadicionales = $HTTP_POST_VARS['cadicionales'];
$dudaspreguntas = $HTTP_POST_VARS['dudaspreguntas'];
$name = $HTTP_POST_VARS['name'];
$edad = $HTTP_POST_VARS['edad'];
$residencia = $HTTP_POST_VARS['residencia'];
$col = $HTTP_POST_VARS['col'];
$es = $HTTP_POST_VARS['es'];
$plaboral = $HTTP_POST_VARS['plaboral'];
$correo = $HTTP_POST_VARS['correo'];
$confirm = $HTTP_POST_VARS['confirm'];
$celular = $HTTP_POST_VARS['celular'];
$como = $HTTP_POST_VARS['como'];
$recomendado = $HTTP_POST_VARS['recomendado'];

$de = stripslashes($de);
$a = stripslashes($a);
$cfisicas = stripslashes($cfisicas);
$cadicionales = stripslashes($cadicionales);
$dudaspreguntas = stripslashes($dudaspreguntas);
$name = stripslashes($name);
$edad = stripslashes($edad);
$residencia = stripslashes($residencia);
$col = stripslashes($col);
$es = stripslashes($es);
$plaboral = stripslashes($plaboral);
$correo = stripslashes($correo);
$confirm = stripslashes($confirm);
$celular = stripslashes($celular);
$como = stripslashes($como);
$recomendado = stripslashes($recomendado);

$rec_email = "email";
$subject = "Perfil Solicitado";

$msg_body .= "¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\n";
$msg_body .= "Rango de la chica de:  $de\n";
$msg_body .= "a:  $a\n";
$msg_body .= "Caracteristicas Fisicas:  $cfisicas\n";
$msg_body .= "Comentarios Adicionales:  $cadicionales\n";
$msg_body .= "Dudas, Preguntas:  $dudaspreguntas\n";
$msg_body .= "Nombre:  $name\n";
$msg_body .= "Edad:  $edad\n";
$msg_body .= "Lugar de Residencia:  $residencia\n";
$msg_body .= "Colonia o Delegacion:  $col\n";
$msg_body .= "Grado de Estudios:  $es\n";
$msg_body .= "Puesto Laboral Actual:  $plaboral\n";
$msg_body .= "Correo Electronico:  $correo\n";
$msg_body .= "Celular:  $celular\n";
$msg_body .= "¿Como supiste?:  $como\n";
$msg_body .= "Recomendado por:  $recomendado\n";
$msg_body .= "_____________________________________________\n";

$header_info = "From: ".$name." <".$correo.">";

mail($rec_email, $subject, $msg_body, $header_info);

?>

Link to comment
Share on other sites

i recode it with a manual but i am not sure if i am correct

 

<?php
$to='mail@mail.com';
$subject='Perfil Solicitado';
$number=$_POST['math'];

$de=$_POST['senderDe'];
$a=$_POST['senderA'];
$cfisicas=$_POST['senderCfisicas'];
$cadicionales=$_POST['senderCadicionales'];
$dudaspreguntas=$_POST['senderDudaspreguntas'];
$name=$_POST['senderName'];
$edad=$_POST['senderEdad'];
$residencia=$_POST['senderResidencia'];
$col=$_POST['senderCol'];
$es=$_POST['senderEs'];
$plaboral=$_POST['senderPlaboral'];
$correo=$_POST['senderCorreo'];
$confirm=$_POST['senderConfirm'];
$celular=$_POST['senderCelular'];
$como=$_POST['senderComo'];
$recomendado=$_POST['senderRecomendado'];

$message="De:  ".$de. "\r\n" . "A:  ".$a. "\r\n" . "cfisicas:  ".$cfisicas. "\r\n" . "cadicionales:  " .$cadicionales . "\r\n" . "Dudaspreguntas:  ".$dudaspreguntas. "\r\n" . "Name:  " .$name."\r\n". "Edad:  ".$edad. "\r\n" . "Residencia:  ".$residencia. "\r\n" . "Col:  ".$col. "\r\n" . "Es:  ".$es. "\r\n" . "Plaboral:  ".$plaboral. "\r\n" . "Correo:  ".$correo. "\r\n" . "Confirm:  ".$confirm. "\r\n" . "Celular:  ".$celular. "\r\n" . "como:  ".$como. "\r\n" ."Recomendado: ".$recomendado. "\r\n";
mail($to,$subject,$message);
 ?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.