pesan php

     <html>

<head>
<title>New Page 1</title>
</head>

<body>

<form method="POST" action="proses.php">
 <p align='center'>PESAN
    <table border="1" width="500" height="300" bgcolor="blue sky">
        <tr>
            <td align="center" width="99" height="39">from</td>
            <td width="14" align="center" height="39">:</td>
            <td width="365" align="center" height="39">
            <input type="text" name="from" size="20"></td>
        </tr>
        <tr>
            <td align="center" width="99" height="36">to</td>
            <td width="14" align="center" height="36">:</td>
            <td width="365" align="center" height="36">
            <input type="text" name="to" size="20"></td>
        </tr>
        <tr>
            <td align="center" width="99">komentar</td>
            <td width="14" align="center">:</td>
            <td width="365" align="center">
            <textarea rows="6" name="komentar" cols="26"></textarea></td>
        </tr>
        <tr>
            <td colspan="3" align="center">
            <input type="submit" value="kirim" name="submit">
            <input type="reset" value="cancel" name="reset"></td>
        </tr>
    </table>
</form>

</body>

</html>






inbox
<?php
$from=$_POST['from'];
$to=$_POST['to'];
$komentar=$_POST['komentar'];

echo"
<form method='POST' action='reply.php'>
<p align='center'>INBOX
<table border='1' width='500' height='300' bgcolor='green'>
        <tr>
            <td align='center' width='99' height='39'>from</td>
            <td width='14' align='center' height='39'>:</td>
            <td width='365' align='center' height='39'>
            <input type='text' name='from' value='$from' size='20'></td>
        </tr>
        <tr>
            <td align='center' width='99' height='36'>to</td>
            <td width='14' align='center' height='36'>:</td>
            <td width='365' align='center' height='36'>
            <input type='text' name='to' value='$to'size='20'></td>
        </tr>

 
        <tr>
            <td align='center' width='99'>komentar</td>
            <td width='14' align='center'>:</td>
            <td width='365' align='center'>
    <textarea rows='6' name='komentar' value='komentar' cols='26'>$komentar</textarea></td>
        </tr>
        <tr>
            <td colspan='3' align='center'>
            <input type='submit' value='reply' name='reply'></td>
        </tr>
    </table>

 </form>";

?>

reply
 
<?php
$from=$_POST['to'];
$to=$_POST['from'];

echo"
<p align='center'>PESAN
<form method='POST' action='proses.php'>
<p align='center'
<table border='1' width='500' height='300' bgcolor='blue'>
        <tr>
            <td align='center' width='99' height='39'>from</td>
            <td width='14' align='center' height='39'>:</td>
            <td width='365' align='center' height='39'>
            <input type='text' name='from' value='$from' size='20'></td>
        </tr>
        <tr>
            <td align='center' width='99' height='36'>to</td>
            <td width='14' align='center' height='36'>:</td>
            <td width='365' align='center' height='36'>
            <input type='text' name='to' value='$to'size='20'></td>
        </tr>
        <tr>
            <td align='center' width='99'>komentar</td>
            <td width='14' align='center'>:</td>
            <td width='365' align='center'>
   <textarea rows='6' name='komentar'  cols='26'></textarea></td>
        </tr>
        <tr>
            <td colspan='3' align='center'>
            <input type='submit' value='kirim' name='reply'>
           <input type='reset' value='cancel' name='reset'></td>
        </tr>
    </table>

    </form>";

?

1 komentar:

  1. Pretty nice post. I just stumbled upon your blog and wished to say that I have truly enjoyed surfing around your blog posts.
    In any case I will be subscribing to your feed and I hope you write again very soon!


    Here is my website; make money Fast

    BalasHapus

terima kasih atas kunjungan anda

http://tugasbloger.blogspot.com/

Copyright © 2016 TUGAS-NGEBLOG