Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7912263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:33:23+00:00 2026-06-03T13:33:23+00:00

I am currently experiencing a bug that only occurs in the current version of

  • 0

I am currently experiencing a bug that only occurs in the current version of Safari (5.1.5) and was wondering if anyone here could come up with any workarounds for it. I tested it in 5.1.2 and it worked fine there, I’m not sure about 5.1.3 and 5.1.4 as I don’t have access to those releases.

The bug requires three pages, I’ll show the source of them and then explain what is going on:

FirstPageWithForm.htm

<form id="theForm" action="ActionHandler.ashx" method="post">
    <input type="hidden" name="differentField" value="1234"/>
    <input type="hidden" name="sameField" value="1111"/>
</form>

<script type="text/javascript">
    var theForm = document.getElementById("theForm");
    theForm.submit();
</script>

SecondPageWithForm.htm

<form id="theForm" action="ActionHandler.ashx" method="post">
    <input type="hidden" name="differentField" value="5678"/>
    <input type="hidden" name="sameField" value="1111"/>
</form>

<script type="text/javascript">
    var theForm = document.getElementById("theForm");
    theForm.submit();
</script>

ActionHandler.ashx

public void ProcessRequest(HttpContext context)
{
     var referrer = context.Request.UrlReferrer;
     var differentField = context.Request["differentField"];
     context.Response.Write(differentField);
     if (differentField == "1234")
     {
         if (referrer.ToString().Contains("Second"))
             context.Response.Write("Failure");
         else
         {
             context.Response.Redirect("SecondPageWithForm.htm");
         }
     }
     else
        context.Response.Write("Success");
}

As you notice both forms have the same field name but one of the fields has a different value. However, in Safari when this code is run, the value "1234" is sent as differentField instead of "5678". I do not believe this bug has anything to do with .NET but I don’t have an easy way to test another language to be sure about that.

Things I already tried:

  • Putting the form submission code in a function and then calling that.
  • Requiring Jquery and calling it in the $(document).ready() function.
  • Putting the function call in a setTimeout().
  • Replacing the function with a button that I press.
  • Copying the Handler and sending the second form to the copy instead.

Every single one of these methods had the same effect, which is to print “Failure” instead of Success.
I will be filing this bug on the Safari forums (I don’t have an Apple Developer account and it’s not working to create a new one at the moment), but I was hoping that someone could help me come up with a suitable workaround for this problem until they fix it.

EDIT: The Safari forum bug report: https://discussions.apple.com/thread/3921507

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T13:33:25+00:00Added an answer on June 3, 2026 at 1:33 pm

    NicolasIgot on my safari forum figured out a solution to my problem.

    I just added autocomplete="off" to the form tag on the second form and everything started working again. I haven’t tried it on my real problem, but it works on my simple test case, so I have confidence in it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I am experiencing a frustrating bug in my code. It seems that I
I'm currently experiencing the issue mentioned here (and several other places): Subsonic 3 Linq
I'm currently experiencing click events intermittently not firing. Anyone else ever had this problem?
Currently I'm experiencing a bug where if the user quickly taps a button, the
I'm currently experiencing a strange issue that my understanding of SQL server doesn't quite
We are currently experiencing an issue that requires the client endpoint configuration file to
I am currently experiencing an issue that I haven't been able to resolve. I
I am currently experiencing a slight oddity with a com component that I am
Our website is currently experiencing high volume download traffic. It will soon exceed the
I'm currently experiencing with the new c++0x variadic templates, and it's quite fun, Although

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.