Fully-functional formmail script needed, incorporating code from existing [login to view URL] script as necessary. All reasonable security precautions, eg. preventing someone from using the form to send e-mail to another domain, needed.
There are functions in other files that have not been provided but can be given as necessary.
If user is logged in, then From field will show their name, with their name and e-mail being included in the mail sent. If not logged in, Name and E-mail fields should be shown instead.
Name, E-mail, Site, Subject and Enquiry fields are required.
Only attachments of types given may be allowed; maximum size, 50KB.
Existing function checkemail, which includes a regexp, should be used to validate the e-mail address entered.
Preview button should take user to a screen with the same layout, except that all fields will be shown as text, rather than editable. Any missing fields should be noted, with option to go back. Once all fields completed, show options to submit or go back.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
PHP 4.x+
MSIE 5.x+
Netscape 4.x+