From the first glance: HTML it wrong. The
<style>
elements goes inside
<head>
element, not
<body>
. Aha, #fafafa… remove all stylistic attributes except
class
and use CSS everywhere.
More importantly
$cvsData
serves no purpose. You could have it all having the element
<form>
. This is the standard HTML way of posting; all the HTML post keys being the values of the
name
attributes.
And now, the most terrifying thing: you made your message-posting page an easy target of a
trivial exploit which can turn your HTTP server host computer into a zombie sending spam or something like that in no time. They really do such things, with minimal effort. This is explained in my past answer:
unable to send mail , it showing the error in below code .[
^].
—SA