Hey everyone. I'm a complete newbie in the PHP world, and will be taking a class in it next term. I revised this PHP send mail script I found on the internet. It seems really simple, and I'm just wondering if something is missing, or if this script looks secure. I was doing some research on PHP security, and didn't really understand if this little script was related, since I am completely unfamiliar with the language. Any insights would be greatly appreciated. Thanks in advance.

Also, would anybody be able to assist on making certain form input fields mandatory, therefore sending an error message when one of these input fields isn't filled out upon submitting the form?

Its actually very insecure. I suggest you read this as it pertains to php contact scripts.

http://www.phpbuilder.com/columns/ian_gilfillan20060412.php3

optimus203

12-01-2008, 09:34 PM

Thanks! I will check this out tonight when I get home, and make the appropriate revisions. Thanks so much for the help.

optimus203

12-02-2008, 04:45 AM

Okay. So I went through the useful page you recommended. Since I'm still learning the PHP scripting language, I'm still unsure if this is correct. I read through the 2 page article, and copy/pasted the suggestions while begining to grasp the PHP coding concept. Can anyone confirm if the commands look proper and functional?

Another question I have is: where do these echo commands show up? On a separate page with just the text, or within the html form somewhere? Any help would be greatly appreciated. Thanks in advance.