error receiving backslash in form data
Posted: Fri Feb 29, 2008 3:27 am
Hi,
I have simple module for submitting a form data and printing it.
The problem is, if there is any occurrence of backslash in the form data, it is doubled! i.e. there are two backslashes instead of one in the received data.
I've tried inserting set_magic_quotes_runtime = 0; , but still have the problem.
Thanks in advance.
- Ritwick
The form source:
I have simple module for submitting a form data and printing it.
The problem is, if there is any occurrence of backslash in the form data, it is doubled! i.e. there are two backslashes instead of one in the received data.
I've tried inserting set_magic_quotes_runtime = 0; , but still have the problem.
Thanks in advance.
- Ritwick
The form source:
The PHP value catching code in (add_pages.php) :
<form name="seldir" id="seldir" action="./add_pages.php" method="post">
<input type="hidden" name="parent_dir" id="parent_dir" value="\admin">
</form>
The PHP output:print 'PARENT: '.($_POST['parent_dir']).'<br>';
PARENT: \\admin