the site has a feedback form, it has 2 fields, one input is the second textarea, users enter their email in the input field, their message in the textarea field, then enter the captcha and press the send button, after validation, the message is sent, but if the user made a mistake with By solving the captcha, the forms are cleaned. With the input field I solved the problem with the help of value, but how to save the entered text in the texarea field? I would be extremely grateful for any help! here's the code itself:
$formcode="<form method=\"post\" onsubmit=\"return false\" enctype=\"multipart/form-data\"> <div class=\"form-group\"> <label>".$lang[196]."</label> <input class=\"form-control\" id=\"send_email\" name=\"send_email\" type=\"text\" value=".@$_POST['send_email']."></div> <div class=\"form-group\"> <label>".$lang[198]."</label> <textarea class=\"form-control\" rows=\"3\" id=\"send_text\" name=\"send_text\"></textarea></div> <div class=\"form-group\"> <label>".$lang[203]."</label> <a class=\"btn btn-default btn-xs\" href=\"#\" onclick=\"document.getElementById('hello_bot').src='code.gif?'+Math.random();return false;\">".$lang[2031]."</a><br /><br /><img alt=\"".$lang[203]."\" id=\"hello_bot\" src=\"code.gif?".microtime()."\" /><br /><input class=\"form-control\" id=\"securityCode\" type=\"text\" name=\"securityCode\" size=\"\"></div> <a class=\"btn btn-danger\" href=\"#\" onclick=\"sendFormMailToUser($('send_email').value, $('send_text').value, $('securityCode').value, ".$_REQUEST['idmess'].");return false;\">".$lang[199]."</a></form>";