Help - Search - Members - Calendar
Full Version: Make Php Subforum Please!
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > PHP
DisDESIGNS
Hi, I have a problem with my PHP Contact Form.

Here are the codes:

prueba.php
CODE
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <title>Fábula (viamonte 681 - Cap. Fed.)</title>
    </head>
    <body>
        &lt;script type="text/javascript">
            function aquien(a){
                document.form1.destinatario.value = a;
            }
        </script>
        <a href="java script:aquien('email@gmail.com');">Email</a>
        <a href="java script:aquien('anothermail@gmail.com');">Another Email</a>
        
        <form action="prueba2.php" method="POST" name="form1" id="form1">
            <p>"Your name: " <br></p>
            <input type="text" name="nombre" />
            <p>"Your e-mail: " <br></p>
            <input type="text" name="email" />
            <p>"Type a comment: " <br></p>
            <textarea cols="10" rows="15" name="texto">Write here your message</textarea>
            <input type="hidden" name="destinatario" value="" />
            <input type="submit" value="Send" />
        </form>
    </body>
</html>


prueba2.php
CODE
<?php
    $nombre = stripslashes($_POST['nombre']);
    $email = stripslashes($_POST['email']);
    $texto = stripslashes($_POST['texto']);
    $destinatario = $_POST['destinatario'];
    $asunto = "[Mail de prueba]";
    
    $mensaje  = "De : $nombre \r\n";
    $mensaje .= "e-Mail : $email \r\n";
    $mensaje .= "---Mensaje--- \r\n".stripslashes($_POST['texto'])."\r\n\n";
    
    if(mail($destinatario, $asunto, $mensaje, "De: $email\r\nRespoder a: $email\r\nReturn-Path: $email\r\n"))
    echo "El envío fue un exito.<br>El mismo fue a parar a la casilla de $email";
    
?>




The problem that I have is: why the mail never arrived in my inbox?
Thanks for your help.
DroNix
mail never arrives since the mail function is disabled. To enable it you need to pay a one-time fee of $10 USD. For more info visit the livechat
Andrew
When you join livechat type

!purchasemail

and a bot will tell you how to go about purchasing the mail option if you decide to do so.

And to answer your topic title, we already have a php subforum, http://www.zymic.com/forum/index.php?showforum=19

It's under the "Serverside Scripting" category. wink.gif
DisDESIGNS
Really thanks! Can you move this thread there? or here is ok?

It's been moved to PHP forum ~Andrew
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.