Results 1 to 4 of 4

Thread: Safari & POST trouble

Hybrid View

  1. #1
    Join Date
    Sep 2010

    Question Safari & POST trouble

    Hello everyone,

    I'm in trouble with Safari (5.0.2, win) and need your help very much!
    I have such simple code:

    PHP Code:
        <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
            <textarea name="image" rows="7"></textarea>
            <input type="submit" name="preview" value="Preview">
    If I try to pass video embed-code via form, nothing is shown. Example of embed-code I use:
    HTML Code:
    <object type="application/x-shockwave-flash" data="http://www.youtube.com/v/uCeXNzI_i9g&fs=1%26enablejsapi=1%26playerapiid=VidWontPlay" width="280"
    height="180" id="VidWontPlay">
    <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" />
    Everything works fine with Chrome, Firefox, IE but not with Safari.

    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!

  2. #2
    Join Date
    Sep 2010
    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.

  3. #3
    Join Date
    Sep 2010
    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).

  4. #4
    Join Date
    Jul 2010
    run the page through an xhtml validation tool. w3c schools has one I think.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center