Well hell, I won't know unless i ask! Just stumbled across this place whilst trying to solve a problem with a PHP script so i figured i'd see if anyone can point me in the right direction.
I'm new to this, just finding my way to web design so bear with me if i sound like i ain't quite with it sometimes...it's because i'm not!
I'm trying to run a very basis PHP script for a feedback form but cannot seem to get it to work...
The form is at www.hovis21.sendmail.html
It is run on a windows server
I had tried the following as a script:
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "email@example.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.hovis21.com/sendmail_thanks.html" );
The form works but no email is generated. I have since found out from streamline.net who host the site that i need to alter the script to stop potential spam....they told me to:
"Use the PHP mail function and set the mail from using the following line of code.
ini_set("sendmail_from", " firstname.lastname@example.org ");
When i try to replace
"From: $email" );
with this I just get a parsing error...unsurprising since i'm not sure if i'm doing the right thing and i can't get a more detailed answer from streamline.
Anyway, just wondered if anyone out there could show me where i'm going wrong. I'd like to teach myself PHP scripting but it seems i've fallen at the first hurdle!