I've got a REALLY annoying problem here. I made myself a pretty nice php page so visitors can send me an email. How ever when they Submit their form data to the server, ot automattically phrases each forrm field containing ' or \ with Back slashes... Originally I thought this was from the "addslashes()" I put in my code... But that's not the case. I made a simple test page to try it out:
Yet even as simple as that an input containing ' or \ adds More slashes to the echo'd $ga. And every time the input is resubmitted the back slashes double.
Why on earth is the happening???!!!
Even using REQUEST rather than POST i get the same results.
Or if I replace $ga with $_POST['1'].
*tear*
| Code: |
| <?php
if(isset($_POST['1'])) { $ga=$_POST['1']; } else { $ga=""; } ?> <form action="" method="POST"> <input type="text" name="1" value="<? echo $ga; ?>"><br> <input type="submit"> </form> <? //End ?> |
Yet even as simple as that an input containing ' or \ adds More slashes to the echo'd $ga. And every time the input is resubmitted the back slashes double.
Why on earth is the happening???!!!
Even using REQUEST rather than POST i get the same results.
Or if I replace $ga with $_POST['1'].
*tear*
