开发者

Opera Input Doesn't POST

开发者 https://www.devze.com 2023-03-19 03:59 出处:网络
I have created a script which posts data to a page automatically.It can be found below: echo \' <html>

I have created a script which posts data to a page automatically. It can be found below:

echo '
    <html>
    <body onLoad="javascript: document.process.submit();">

    <form method="post" action="pagehere.php" name="process">
';

foreach($post_data as $k => $v) {
    echo "<inp开发者_Python百科ut type='hidden' name='$k' value='$v' />";
}

echo '
    <input type="submit">
    </form>
    </body>
    </html>
';

It works as intended in all other browsers apart from Opera (testing on version 11.50). The <form action> attribute works and the user is redirected to the new page. However, the hidden input fields are not sent to the new page.

I have tried removing the JS and replacing it with a standard submit button, with no luck. I have also tried using standard <input type="text"> tags just to test, and again, have had no luck. Oh, and no luck submitting with jQuery either, although that again was fine with IE/FF.

Am I missing something stupid, or is this a very strange problem?

Thanks.


After hours of searching the internet, it turned out I was looking at the wrong thing completely. The proxy settings in Opera were not configured correctly for my development environment...

Thanks to everybody who took the trouble to read/answer.

0

精彩评论

暂无评论...
验证码 换一张
取 消