From 2009.igem.org
(Difference between revisions)
|
|
Line 13: |
Line 13: |
| | | |
| | | |
- | <html>
| |
- | <head>
| |
- | <title>Thanks for your comments.</title>
| |
- | </head>
| |
- | <body>
| |
- | <?php
| |
- | $name = $_POST['name'];
| |
- | $comment = $_POST['comment'];
| |
- | $textarea = $name." ".$comment.$textarea;
| |
- | ?>
| |
- | <form action="comments.php" method="post">
| |
- | <center>
| |
- | <table>
| |
- |
| |
- | <tr>
| |
- | <th colspan="2">Please enter your name and leave a comment about our song.</th>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td><b>Name:</b></td>
| |
- | <td><input type="text" name="name" width="5" height="5" wrap="on"></td>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td><b>Comments:</b></td>
| |
- | <td><input type="text" name="comment" wrap="on" overflow="true"></td>
| |
- | </tr>
| |
- |
| |
- | <tr>
| |
- | <td align="center" colspan="2"><input type="submit" value="Submit Comment">
| |
- | </tr>
| |
- |
| |
- | </table>
| |
- | </form>
| |
- | <p>
| |
- | <p>
| |
- | <textarea name="textarea" cols="50" rows="20" wrap="on" readonly="true">
| |
- | <?php
| |
- | echo $name.': ';
| |
- | echo $comment;
| |
- | ?>
| |
- | </textarea>
| |
- | </body>
| |
- | </html>
| |
| | | |
| <br> | | <br> |
| {{WashUbottom}} | | {{WashUbottom}} |
Revision as of 21:54, 6 July 2009