Morpheusweb.it - Risorse per webmaster: script, ASP.NET, C#, Visual Basic .Net, tutorial, asp, javascript, css, php, html, java, ADO, VBScript, forms, frames, Active Server Pages, Dynamic HTML, database, gratis per webmaster e webdesigner

Feedback

Form per il feedback.




<html>
<head>
<title>8_mailer</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<?
$sendto = 'name@tuodominio.com';
$mainurl = "";
$subject = "Feedback Form";
$thankyoumessage = "Thank you for your message. We appreciate \n" .
"your taking the time to write to us.\n" ;
$thankyoutitle = "Your Message Has Been Sent" ;
function disable_caching ()
{
}
if (!isset( $email ) || !isset( $realname ) || !isset( $comments )) {
    if (empty( $formurl )) {
        ?>
        <HTML>
        <head>
        <title>Feedback Form</title>
        </head>
        <body>
        <h1>Feedback Form</h1>
        <p>
        <form method="post" action="index.php">

        <table border=0 width="100%">
        <tr>
        <td>Email address</td>
        <td><input type="text" name="email" size="25"></td>
        </tr>
        <tr>
        <td>Full name</td>
        <td><input type="text" name="realname" size="25"></td>
        </tr>
        <tr>
        <td valign="top"><br>Comments</td>
        <td><textarea name="comments" cols="25" rows=15></textarea><br>&nbsp;<br></td>
        </tr>
        <tr>
        <td>&nbsp;</td>
        <td>
        <input type="submit" value="Send comments"><br>
        <font size=1>Powered by <a href="http://www.thesitewizard.com/" target="_top">thesitewizard.com</a></font>
        </td>
        </tr>
        </table>
        </form>
        </p>
        <p>
        Or <a href="<?echo $mainurl?>">click here</a> to return to the main page.
        </p>
        <hr>
        This feedback script is copyright &copy; 2000 by
        <a href="http://www.thesitewizard.com/" target="_top">Christopher S L Heng</a>.
        All rights reserved.<br>
        Get a feedback form and other CGI/PHP scripts for
        your website, free, at <a href="http://www.thesitewizard.com/" target="_top">thesitewizard.com</a>.
        </body>
        </html>
    <?
    exit ;
    }
    else {
        header( "Location: $formurl" );
    exit ;
    }
}
if ((strlen($email) == 0)) {
    $email = "no_email_given" ;
}
$messageproper =
"This message was sent using from:\n" .
" $HTTP_REFERER\n" .
"------------------------- COMMENTS -------------------------\n\n" .
$comments .
"\n\n------------------------------------------------------------\n" ;
mail($sendto, $subject, $messageproper,
"From: \"$realname\" <$email>\nX-Sender: CHFEEDBACK.PHP" );
if (empty( $thankyouurl )) {
    if (empty($thankyoutitle)) {
        $thankyoutitle = "Your Message Has Been Sent" ;
    }
    if (empty($thankyoumessage)) {
        $thankyoumessage = "Thank you for your message. We appreciate \n" .
        "your taking the time to write to us.\n" ;
    }
    disable_caching();
    ?>
    <HTML>
    <head>
    <title><?echo $thankyoutitle?></title>
    </head>
    <body>
    <h1><?echo $thankyoutitle?></h1>
    <p>
    <?echo $thankyoumessage?>
    </p>
    <p>
    Please <a href="<?echo $mainurl?>">click here</a> to
    return to the main page.
    </p>
    <hr>
    This feedback script is copyright &copy; 2000 by
    <a href="http://www.thesitewizard.com/" target="_top">Christopher S L Heng</a>.
    All rights reserved.<br>
    Get a feedback form and other CGI/PHP scripts for
    your website, free, at <a href="http://www.thesitewizard.com/" target="_top">thesitewizard.com</a>.
    </body>
    </html>
    <?
    }
    else {
        header ( "Location: $thankyouurl" );
    }
?>
</body>
</html>


Scarica il Codice...


Stampa la pagina


 








Inizio pagina

risorse per webmaster

php

php

php, mail, database, banner
php, banner,

Vai nel sito Morpheusweb.it - Risorse per Webmaster troverai quello che stai cercando
php, banner,
Nel nostro sito molte informazioni: "Morpheusweb.it - Risorse per Webmaster" tratta di php, script, forms, mail, database
click here se non sei reindirizzato automaticamente al nostro sito.

php, script, banner, mail, database, , ,