Announcements | Last Post | |
---|---|---|
SoC Curricula | 09/30/2017 01:08PM | |
Demarcation or scoping of examinations and assessment | 02/13/2017 07:59AM | |
School of Computing Short Learning Programmes | 11/24/2014 08:37AM | |
Unisa contact information | 07/28/2011 01:28PM |
Language: PHP<?php $title = "Webooks.com Guestbook"; include("header.php"); ?> <h3>Webooks.com Guestbook:</h3> <form method=';post'; action=';guestbook.php';> <table width="600" cellpadding="0" cellspacing="0" border="0"> <tr> <td>What is your first name:</td> <td><input name=';firstname'; type=';text';></td> </tr> <tr> <td>What is your last name?</td> <td><input name=';lastname'; type=';text';></td> </tr> </table> <br> What are your comments about this site?:<br> <textarea name=';comments'; rows=';6'; cols=';45';></textarea> <br><br> <input type=';submit';> </form> <h3>Guestbook Entries</h3> <?php include("guest.txt"); include("footer.php"); ?>
Language: PHP<?php $title = "Webooks.com Guestbook"; include("header.php"); $fp = fopen("./guest.txt", "a"); fwrite($fp, "<br><b>$firstname $lastname:</b> $comments<br>"); fclose($fp); echo "Your entry has been added to the guestbook!<br><br>"; echo "<a href=';guestbookform.php';>Return to the guestbook</a>"; ?>
Re: Problem with apply your knowledge exercise February 17, 2009 11:06AM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: Task 3B-1 February 17, 2009 11:42AM |
Registered: 15 years ago Posts: 29 Rating: 0 |
Re: Task 3B-1 February 17, 2009 01:10PM |
Registered: 15 years ago Posts: 29 Rating: 0 |
Language: PHP<?php $title = "Webooks.com Guestbook"; include("header.php"); $first = $_POST[';firstname';]; $last = $_POST[';lastname';]; $text = $_POST[';comments';]; $fp = fopen("./guest.txt", "a"); fwrite($fp, "<br><b>$first $last:</b> $text<br>"); fclose($fp); echo "Your entry has been added to the guestbook!<br><br>"; echo "<a href=';guestbookform.php';>Return to the guestbook</a>"; ?>
Re: Task 3B-1 February 17, 2009 01:30PM |
Admin Registered: 18 years ago Posts: 10,001 Rating: 353 |
Re: Task 3B-1 March 02, 2009 09:04PM |
Registered: 15 years ago Posts: 10 Rating: 0 |