Http receive data from node

So ive followed the example with the temperature logger  with some slight variations. 

I have a button that is sending a “1” and “0” for high and low states to the imp node, and when connected to the HTTP request node, it shows 200. great.

 but im trying to send an email when a 1 is received from the node, without any luck. Im not sure what information is missing to translate this over to my php script.

 here is my php script i uploaded online:

/* Electric Imp POST Example */

$fd = ‘sensorVal’;
if ($fd > 0){

//define the receiver of the email
$to = ‘’;
//define the subject of the email
$subject = ‘Test email’; 
//define the message to be sent. Each line should be separated with \
$message = "Hello World!\ \ This value is over range.HIGH"; 
//define the headers we want passed. Note that they are separated with \\r\
$headers = "From:\\r\ Reply-To:";
//send the email
$mail_sent = @mail( $to, $subject, $message, $headers );
//if the message is sent successfully print "Mail sent". Otherwise print "Mail failed" 
echo $mail_sent ? "Mail sent" : "Mail failed";

else {

print "Mail failed" ;

//end of code.

im confused where this data is getting lost in translation

sorry ! solved. forgot to put :

myValueiswhatever.set(1) //  “1” being the send number to server