themanwhowas wrote:it is called magicquotes.
Uhh... I think you've misunderstood the problem here. magic_quotes is for POST/GET data... what elite111 is dealing with are actual coding errors.
elite111 wrote:dont tell me i have to do this on the whole page?
Alright, I won't tell you. All I'll tell you is that if you use a double quote as your string delimiter, e.g.
echo "Hello world!";
then any literal double quote that should appear in the output (e.g. your form tags) must be escaped, or prepended with a backslash:
echo "I said, \"Hello world!\"";
Now, if you're using single quotes as your string delimiter, the same rule applies only with single quotes instead:
echo 'Can\'t you hear? I said, "Hello world!"';
Also, just to reiterate what ClarkF1 pointed out earlier: When posting PHP code, please use the board's [PHP][/PHP] bbcode tags - they make the code much, much easier to read (as well as aiding the diagnosis of syntax errors). You should edit your post now and add these bbcode tags to help others in reading/analyzing your code.
EDIT: Lastly, please do not crosspost between different forums. I've removed the duplicate post in the General Help forum as this thread has received more information.