NinjaMoo
06-28-2007, 01:34 PM
Hi,
I have a curious problem and I wonder if its due to my lack of understanding of php/html.
(I'm completly new at this and just learing as I go)
I have a string which is echoed on screen fine but when sent as in my feedback form I only get the first word:
The string is read from a file
$theData = fgets($fh);
echo( "<p>Thank you for supporting us by wanting to contribute towards our</p>");
echo ("<p> $theData </p>");
echo ("<input type='hidden' value=$theData name='Gift'>");
The echo of $theData works fine displaying "Hotel stay"
In my sendMail.php:
$gift=$_POST['Gift'];
$send =
"
From: $email \n
Gift: $gift \n
";
mail("", "Feedback Form Results", $send, "From: $email");
The value gift is only "Hotel".
Does anyone have any thoughts of where I'm going wrong?
Thanks in advance.
KK
I have a curious problem and I wonder if its due to my lack of understanding of php/html.
(I'm completly new at this and just learing as I go)
I have a string which is echoed on screen fine but when sent as in my feedback form I only get the first word:
The string is read from a file
$theData = fgets($fh);
echo( "<p>Thank you for supporting us by wanting to contribute towards our</p>");
echo ("<p> $theData </p>");
echo ("<input type='hidden' value=$theData name='Gift'>");
The echo of $theData works fine displaying "Hotel stay"
In my sendMail.php:
$gift=$_POST['Gift'];
$send =
"
From: $email \n
Gift: $gift \n
";
mail("", "Feedback Form Results", $send, "From: $email");
The value gift is only "Hotel".
Does anyone have any thoughts of where I'm going wrong?
Thanks in advance.
KK