Skip to content Skip to sidebar Skip to footer

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:

<textareaname="background2"cols="71"rows="10"id="backgroundtext2"><?phpecho$_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:

<textareaname="background2"cols="71"rows="10"id="backgroundtext2"><?phpecho$_POST["background"];?></textarea>

Post a Comment for "Passing Data From One Textarea To Another On A Different Page Using Post"