echo "<INPUT name='msgbody' type='hidden' value='Hi '.$names.' We look forward to seeing you very soon.'>"; Guys the above code is only post Hi as a value can anyone tell me whats wrong with it Thanks in advance
put '/' on every value of an html property ie. echo "<input type=/"text/">"; because the " is being recognized by php
echo "<INPUT name=/"msgBody/" type="/hidden/" value=/"Hi .$names. We look forward to seeing you very soon./">";
Code above is wrong .. Use this double quotation preferred : echo "<INPUT name='msgBody' type='hidden' value='Hi".$names." We look forward to seeing you very soon.'>";