Safari & POST trouble
I'm in trouble with Safari (5.0.2, win) and need your help very much!
I have such simple code:
If I try to pass video embed-code via form, nothing is shown. Example of embed-code I use:
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<textarea name="image" rows="7"></textarea>
<input type="submit" name="preview" value="Preview">
Everything works fine with Chrome, Firefox, IE but not with Safari.
<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/uCeXNzI_i9g&fs=1%26enablejsapi=1%26playerapiid=VidWontPlay" width="280"
<param name="src" value="http://www.youtube.com/v/uCeXNzI_i9g&fs=1%26enablejsapi=1%26playerapiid=VidWontPlay" />
<param name="wmode" value="transparent" />
<param name="allowscriptaccess" value="always" />
<param name="allowFullScreen" value="true" />
If I just put embed-code in the page's html, everything works.
If I try to pass if via form, nothing is shown.
But if I pass code via form, save page that appeared and then reopen it, everything works again!
Any ideas are much appreciated!
Bit of a strange one.
What do you get is you print_r the $_GET data?
What does the $_GET data look like in the source of the page?
My only thought is that it's some sort of encoding issue to do with Safari, but I'm not sure.
Thank you for answering, nyx.
print_r shows data as it should be. $_POST['image'] looks to be ok too. I tryed to change encoding, but it didn't help. I guest I will live it as is or use external files and Iframes (everything works ok if data isn't echoed on page directly via request).
run the page through an xhtml validation tool. w3c schools has one I think.