Passing Data From One Textarea To Another On A Different Page Using POST
I have a problem of passing data from one textarea to another textarea on another page. I’m using php POST function in order to retrieve data from the first page. Also, I have Ja
Solution 1:
You have to write the content of the textarea BETWEEN the tags, not into a value attribute:
<textarea name="background2" cols="71" rows="10" id="backgroundtext2">
<?php echo $_POST["background"]; ?></textarea>
Be aware that this code is extremly unsafe! If the $_POST["background"] contains HTML it will be brake down your html-code etc.
Solution 2:
Shouldn't it be:
<textarea name="background2" cols="71" rows="10" id="backgroundtext2">
<?php echo $_POST["background"];?>
</textarea>
Post a Comment for "Passing Data From One Textarea To Another On A Different Page Using POST"