Passing values using POST
Posted: Sun Mar 22, 2009 6:16 am
hi
This is the code related to the form
when i enter the value "Jane" (with double quote) , and submit i want to display that text
Here the saveit.php
But here it displays as
\"Jane\" (Not as "Jane")
So how to get the out put as "Jane" (with double quote)
This is the code related to the form
Code: Select all
<form id="form1" name="form1" method="post" action="saveit.php">
<label>
<textarea name="txt1" cols="100" rows="25"></textarea>
<input type="submit" name="Submit" value="Submit" />
</label>
</form>
Here the saveit.php
Code: Select all
echo $_POST["txt1"]);\"Jane\" (Not as "Jane")
So how to get the out put as "Jane" (with double quote)