I have a first script which contains a form and a textarea. So now when I process the form I use something like this
$category = $HTTP_POST_VARS['name_of_category'];
$dt_question = $HTTP_POST_VARS['dt_frage'];
$eng_question = $HTTP_POST_VARS['eng_frage'];
$ratio = $HTTP_POST_VARS['rationale'];
$sql = "INSERT INTO sqlserverfaq (
category, dt_question, eng_question, answer) VALUES(
'$category', '$dt_question', '$eng_question', '$ratio')";
'rationale' is the textarea. Answer is the MySQL field of text data type. When I look at the results it works fine except for the content of $ratio.
So, how can I insert the content of a textarea into a MySQL text field ?