- Aug 31, 2006
- 8,307
- 176
- 106
My boss came to me today and tasked me with making a simple web page containing a company memo and to have at the bottom a spot where those who read it can enter their first name in one field and their last name in a second field then click "Submit" to verify they've read the memo.
I got the HTML portion up without any problem. Here's what I have for the form part:
The problem I'm having is that I don't know jack about Perl or PHP to get it to simply take the first name, last name, and the current date and append it to a text file as different employees read and submit their information. Eventually we'd like to have a long text file like so:
Can anyone give me some pointers or point me to a guide to get me started?
Any help would be appreciated.
I got the HTML portion up without any problem. Here's what I have for the form part:
<form method=post action="data.pl">
Enter your first name:
<input name="firstname">
<br><br>Enter your last name:
<input name="lastname">
<br><br>
I have read and accept this memo.
<br><br>
<input type="submit" value="Submit">
</form>
The problem I'm having is that I don't know jack about Perl or PHP to get it to simply take the first name, last name, and the current date and append it to a text file as different employees read and submit their information. Eventually we'd like to have a long text file like so:
John Doe 11/2/2007
Jane Doe 11/2/2007
Jim Doe 11/2/2207
etc...
Can anyone give me some pointers or point me to a guide to get me started?
Any help would be appreciated.
