mattcarless
12-14-2003, 07:00 AM
I'm having difficulty getting a simple form (name, email, message) to deliver the entered details to my email. If you go to http://freespace.virgin.net/am.carless and click on the contact button you can see the form in question. I have got the following php on the send button.
PHP:
------------------------------------------------------------------------
<?php
while(list($Key,_$Val)=_each($HTTP_POST_VARS))
____$resp.="$Key_:_$Val\n";
mail("am.carless@virgin.net",_"Form submission on web site",_$resp);
header("Location: thanks.html");
?>
------------------------------------------------------------------------
Does anybody have any idea why this won't work? It is simpler just to have a mailto action that brings up an email window, but I wanted the form because it looks slicker..........help!
PHP:
------------------------------------------------------------------------
<?php
while(list($Key,_$Val)=_each($HTTP_POST_VARS))
____$resp.="$Key_:_$Val\n";
mail("am.carless@virgin.net",_"Form submission on web site",_$resp);
header("Location: thanks.html");
?>
------------------------------------------------------------------------
Does anybody have any idea why this won't work? It is simpler just to have a mailto action that brings up an email window, but I wanted the form because it looks slicker..........help!