Can someone help?
I am using formmail.php3, provided by my ISP, to get details from my feedback form (I already have formmail.php3 working, the mail.htt template, the response.htt template when the form is submitted, and a form to use.
Trouble is, they only supply the code to use, not support it.
The php code supplied is:
<?php
$fmt_Response=implode("", file("response.htt"));
$fmt_Mail=implode("", file("mail.htt"));
while(list($Key, $Val)= each($HTTP_POST_VARS)) {
$fmt_Response=str_replace("{$Key}", $Val, $fmt_Response);
$fmt_Mail=str_replace("{$Key}", $Val, $fmt_Mail);
}
mail($HTTP_POST_VARS["Recipient"], $HTTP_POST_VARS["Subject"], $fmt_Mail);
echo $fmt_Response;
?>
I need help to do the following:
1) Get the env_report data. I have tried:
(#snip#) $env["DATE_LOCAL, DATE_GMT, HTTP_ACCEPT_LANGUAGE, REMOTE_HOST, REMOTE_ADDR, HTTP_USER_AGENT, user_agent_os, user_agent_cpu"], (#snip#)
2) I need to know how to 'lock down' the script so that the results of my feedback form can only be sent to me, and from my domain/ip address.
Help grately appreciated.
Regards,
Simon.