How can I hand over double quotes with POST? Everytime I try it he gives me \'
the first time and \\\'\\\
the second time and so on. I tried it with str_replace
but it works only for parts. Is there a way to correct handle this?
Edit:
After disabling magic_quotes_gpc
it still doesn't work 100% correctly. My first form has a hidden input field. It has the value
text 'textinquotes'
Per post
this value is submitted to another php script. If I output the variable I get
text \'textinquotes\'
If the user forgot to fill out a field, I submit the values to another PHP-script per post
. In this php-script I make a get
with the parameters to the php script where the user puts in his values. In this case I get
text \\\'textinquotes\\\'
If the user has input everything correct I write an email and stores it in the database. In the email I get
text \'textinquotes\'
and in the database I get
text 'textinquotes'
.
What I'm doing still wrong?
For creating the get
I have the following code:
$red = $referer."?error=1";
foreach($post as $post_key => $post_value) {
$red .= "&".$post_key."=".$post_value;
}