|  | Posted by Malcolm Dew-Jones on 06/14/73 11:29 
bonehead (sendmenospam@here.net) wrote:: Colin McKinnon wrote:
 : >>Does
 : >>anyone have an example of what I'm looking for?
 : >
 : > No I've given up the psychotropics.
 
 : Okay, fine, just show me whatever you consider to be a good example of a
 : php e-mail web form with validation and error handling. That's all I'm
 : really looking for. It doesn't have to have any javascript in it at all.
 
 Hum, if that's what you want then why didn't you just say so.
 
 PhpBB seems to handle sending mail just fine, perhaps that application
 could provide suitable examples for you of getting and using email
 addresses.
 
 There are also loads of html and cgi books that discuss validating form
 input.
 
 There have been lots of threads here (i.e. googling time) about what sort
 of validation is needed by am "email form".  Key item is that the email
 addresses must be controlled serverside by the php script during the
 invocation when it actually sends the mail.  (I.e. hidden fields in forms,
 or javascript validation of email addresses is useless.)
 
 
 : Meanwhile I'll send a message to the authors of the book I cited telling
 : them that you'll shortly be explaining exactly what's wrong with using
 : $PHP_SELF as the action argument of a form, and providing a much better
 : example.
 
 Hum, I didn't notice him saying he was going to do any such thing.  Are
 you trying to be sarcastic?  If so, I'm afraid you put your foot in your
 mouth since what he questioned was your claim of "recursive" calls using
 that variable.  I think it highly doubtful the wrox example recursively
 calls itself, which is not at all the same thing as using it as the action
 of a form - though from your verbose, technically loose description, I am
 not sure you would quite understand that (yet).
 [Back to original message] |