thosecars82 wrote:Having heard that ("If you want to keep multiple forms, you will need to write some javascript") and considering it is true I think this post is solved. The only possible alternative which might come to my mind would be to use just one form with absolute positioned elements all of them far away from each other. Nevertheless, I do not think using such a lot of absolute positioned elements make a good design. For that reason, I consider using javascript the best choice.
Thanks all of you again.
What I meant was this:
Let's say I want to link another page without losing the content of 5 text areas each of them in different forms I might have in my page. Then if I click the submit button of one of the forms, this would link to another page. Nonetheless, I would not want to lose the content of the 4 text areas which are on the other 4 forms different from the one whose button I clicked. How can I keep the content of all the text areas if they are in different forms? That was my question.
Now another question:
now I am trying to read the content of a text area whose id is idcomentarios to be able to send it by post method to the server. The code is this:
...
<?php
$state = "?send=0";
if (isset($GET['send']))
$state = "send=" . $GET['send'];
if ($language=='en')
{
echo '<FORM id=\'intermedio\' action=\''.$pagina.'?' . $state.'&language=sp'.'\' method=\'post\'>';
echo '<P>';
echo '<INPUT class = \'enlacespanishflag\' type=\'submit\' value=\'';
echo _(" ") . "'>";
echo '<TEXTAREA id=\'comentariosintermedios\' rows=\'10\' cols=\'10\'>';
?>
<script type="text/javascript">
<!--
var txt = document.getElementById('idcomentarios').value;
document.write(text);
//-->
</script>
<?php
echo '</TEXTAREA>';
echo '</P>';
echo '</FORM>';
....
Now, what I see in the text area with id comentariosintermedios is just this:
<script type="text/javascript">
<!--
var txt = document.getElementById('idcomentarios').value;
document.write(text);
//-->
</script>
Nevertheless, what I expected to see was what actually the user might have written in the content of the text area with id 'idcomentarios'. Any idea to get the real content of the text area?