• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

A javascript to submit a form works in Firefox, but not in IE

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I write a php file, and want it posts username and password to login.php as soon as the php file is loaded. Then I write these javascript.

I find these scripts works in Firefox, Opera, Chrome, Safari, but not in IE.
I discover the ie will also request the login.php, but the time is so short. And the other browsers will request the login.php for a longer time.

Anyone would like to help me?

Perhaps this isn't the proper method to post one form to two php file at the same time, so anyone can give me a sample on this?

the js file


and this is the form


I want the login.php to display in the hidden iframe, so that the user won't find the post.


 
I yam what I yam and that's all that I yam - the great philosopher Popeye. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic