Boker Posted November 23, 2014 Share Posted November 23, 2014 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);?> Quote Link to comment Share on other sites More sharing options...
Barand Posted November 23, 2014 Share Posted November 23, 2014 HTTP_POST_VARS??? Looks like you are still using PHP v3. Time to upgrade. Quote Link to comment Share on other sites More sharing options...
Boker Posted November 23, 2014 Author Share Posted November 23, 2014 i am a bit rusty in php do you think that's the only problem upgrade? Quote Link to comment Share on other sites More sharing options...
Barand Posted November 23, 2014 Share Posted November 23, 2014 Changing $HTTP_POST_VARS to $_POST won't hurt. I haven't seen HTTP_POST_VARS this century and a search on php.net manual didn't find it. stripslashes() should only be necessary if magic_quotes is on, and the default has been "off" for years. Check your php.ini settings. Quote Link to comment Share on other sites More sharing options...
Boker Posted November 23, 2014 Author Share Posted November 23, 2014 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); ?> Quote Link to comment Share on other sites More sharing options...
Barand Posted November 23, 2014 Share Posted November 23, 2014 Have you tried testing it with your input form? Quote Link to comment Share on other sites More sharing options...
Boker Posted November 23, 2014 Author Share Posted November 23, 2014 i am on it now... Quote Link to comment Share on other sites More sharing options...
Boker Posted November 23, 2014 Author Share Posted November 23, 2014 a flash form is the one that sends the information but even with this new code the information do not arrive comes clean and empty lol Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.