Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Text ARea and Emails

Status
Not open for further replies.

sanjdhiman

Programmer
Joined
Jan 15, 2003
Messages
189
Location
GB
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 &quot;<td width=30% class=\&quot;subtitle\&quot; align=\&quot;center\&quot;>Response: </td>&quot;;
echo &quot;<td width=70% class=subtitleblack align=left><textarea name=\&quot;response\&quot; cols=\&quot;50\&quot; rows=\&quot;5\&quot;></textarea></td>&quot;;
echo &quot;</tr>&quot;;
echo &quot;</table>&quot;;

This is the text area box called response

Im making it ready so that it can be sent into an email....

$mailcontent = &quot;<html><body> The following is a response to your enquiry: <br>\r\n&quot;
. &quot;Subject: &quot; . $subject .&quot;<br>\r\n&quot;
. &quot;Original Enquiry: &quot; . $enquiry . &quot;<br><br>\r\n&quot;
. &quot;Response: &quot; . $response . &quot;<br>\r\n&quot;
. &quot;Thank you for your enquiry, BAM Property Services, Please do not hesitate in contacting BAM for further information \r\n&quot;
. &quot;</body></html>&quot;;



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 &quot;<form name=sendemailenquiry action=\&quot;enquirysent.php?response=$response&amp;subject=$subject&amp;mailcontent=$mailcontent&amp;toaddress=$toaddress&ampheaders=$headers\&quot; method=post>&quot;;
echo &quot;<p align=center><input type=submit value='Send Email'></p>&quot;;
echo &quot;</form>&quot;;

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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top