[php]<?php $name = $POST_['name']; $email = $POST_['email']; $subject = $POST_['subject']; $body = $POST_['query']; mail("email@example.com", "$subject", "$body", "From: '$name' : '$email'"); ?>[/php]
MOD EDIT: Corrected Incorrect Usage of PHP bb code tags
Above is my php code to send an email with what a user types in the form. I am currently getting blank emails sent to my address and was wondering if someone can tell me where I went wrong.
This is probably something simple as I am a beginner and have had very little php experience.
All help is greatly appreciated.