Question:

Comment box 4 website plz?

by  |  earlier

0 LIKES UnLike

my website it's not published yet. I'm using web page maker 3.0 and I'm looking 4 a script or html code 2 get a comment box can any1 help me out here? no php though that doesn't work cause I don't have database

 Tags:

   Report

1 ANSWERS


  1. You can't do anything like this with php.

    Any way, here is an example:

    The php:

    <?php

    $to = $_POST['to'];

    $subject = $_POST['subject'];

    $message = $_POST['message'];

    $from = $_POST ['from'];

    $headers = "From: $from";

    mail($to,$subject,$message,$headers);

    ?>

    The html:

    <html>

    <head>

      <title></title>

      </head>

      <body>

    <form name="form" method="post" action="mail.php">

    <table>

    <tr>

    <td>To:</td>

    <td><input type="text" name="to"></td>

    </tr>

    <tr>

    <td>Your Email Adress: </td>

    <td><input type="text" name="from"></td>

    </tr>

    <tr>

    <td>Subject: </td>

    <td><input type="text" name="subject"></td>

    </tr>

    <tr>

    <td colspan="2">Message:</td>

    </tr>

    <tr>

    <td colspan="2"><textarea name="message" rows=4 cols=25></textarea></td>

    </tr>

    <tr>

    <td colspan="2"><input type="submit" value="Sumbit"></td>

    </tr>

    </table>

    </body>

    </html>

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.