Im working on building my first contact form.
I have a page similar to this with a lot of fields... http://www.missingpeople.org.uk/component/option,com_rsform/Itemid,144/lang,en/view,rsform/
The form, when submitted then redirects to my process page that contains...
<?php
foreach ($_POST as $key => $value)
$message .= "Field ".htmlspecialchars($key)." is ".htmlspecialchars($value)."\r\n";
mail('[email protected]', 'sghting', $message);
?>
From what I've been reading on the process though this seems vulnerable to injections? sorry if this sounds naive im new to the process. What Im asking is where do i start in reading up on sanitizing this code?