sanjdhiman
Programmer
Text Area Problem
Hi there i have the following problem which for hte life of me i cannot seem to solve
I am sending an email based on users input into a form.. The form elements are stored as normal variables
I have the following snippet of code
echo "<td width=30% class=\"subtitle\" align=\"center\">Response: </td>";
echo "<td width=70% class=subtitleblack align=left><textarea name=\"response\" cols=\"50\" rows=\"5\"></textarea></td>";
echo "</tr>";
echo "</table>";
This is the text area box called response
Im making it ready so that it can be sent into an email....
$mailcontent = "<html><body> The following is a response to your enquiry: <br>\r\n"
. "Subject: " . $subject ."<br>\r\n"
. "Original Enquiry: " . $enquiry . "<br><br>\r\n"
. "Response: " . $response . "<br>\r\n"
. "Thank you for your enquiry, BAM Property Services, Please do not hesitate in contacting BAM for further information \r\n"
. "</body></html>";
Finally the form sends the response value and all the other variables to the next page where im just echoing all the variables to make sure they are coming out alright
echo "<form name=sendemailenquiry action=\"enquirysent.php?response=$response&subject=$subject&mailcontent=$mailcontent&toaddress=$toaddress&headers=$headers\" method=post>";
echo "<p align=center><input type=submit value='Send Email'></p>";
echo "</form>";
BUT when i check the page, $response has not come out at all???? no value to it. blank
Can anyone help?
Thanks all in advance
Sanj
Hi there i have the following problem which for hte life of me i cannot seem to solve
I am sending an email based on users input into a form.. The form elements are stored as normal variables
I have the following snippet of code
echo "<td width=30% class=\"subtitle\" align=\"center\">Response: </td>";
echo "<td width=70% class=subtitleblack align=left><textarea name=\"response\" cols=\"50\" rows=\"5\"></textarea></td>";
echo "</tr>";
echo "</table>";
This is the text area box called response
Im making it ready so that it can be sent into an email....
$mailcontent = "<html><body> The following is a response to your enquiry: <br>\r\n"
. "Subject: " . $subject ."<br>\r\n"
. "Original Enquiry: " . $enquiry . "<br><br>\r\n"
. "Response: " . $response . "<br>\r\n"
. "Thank you for your enquiry, BAM Property Services, Please do not hesitate in contacting BAM for further information \r\n"
. "</body></html>";
Finally the form sends the response value and all the other variables to the next page where im just echoing all the variables to make sure they are coming out alright
echo "<form name=sendemailenquiry action=\"enquirysent.php?response=$response&subject=$subject&mailcontent=$mailcontent&toaddress=$toaddress&headers=$headers\" method=post>";
echo "<p align=center><input type=submit value='Send Email'></p>";
echo "</form>";
BUT when i check the page, $response has not come out at all???? no value to it. blank
Can anyone help?
Thanks all in advance
Sanj