hey now i m in a big trouble, i m submitting a value of textarea form test1.html to test2.php & when i accept that value in textarea of test2.php then its format got changed i.e. it accepts extra slashes, following is my code of both files...
test1.html
<form action="test2.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
<table width="47%" height="154" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="32%">Description</td>
<td width="3%">:</td>
<td width="65%"><textarea name="ta" cols="40" rows="3" id="ta"></textarea></td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="Submit" /></td>
<td> </td>
<td> </td>
</tr>
</table>
</form>
- <form action="test2.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
- <table width="47%" height="154" border="0" cellpadding="0" cellspacing="0">
- <tr>
- <td width="32%">Description</td>
- <td width="3%">:</td>
- <td width="65%"><textarea name="ta" cols="40" rows="3" id="ta"></textarea></td>
- </tr>
- <tr>
- <td><input type="submit" name="Submit" value="Submit" /></td>
- <td> </td>
- <td> </td>
- </tr>
- </table>
- </form>
test2.php
<form id="form1" name="form1" method="post" action="">
<textarea name="textarea" cols="60" rows="5"><?php echo $_POST['ta'];?></textarea>
</form>
- <form id="form1" name="form1" method="post" action="">
- <textarea name="textarea" cols="60" rows="5"><?php echo $_POST['ta'];?></textarea>
- </form>
the output it shows in test2.php is...
<img src=\"showing/m1.jpg\" alt=\"\" border=\"0\" />
actual output should be...
<img src="showing/m1.jpg" alt="" border="0" />