Jump to content

an Internet Explorer phenomanon


phppup

Recommended Posts

I have a basic <form action=insert.php>  I developed it and have it working well. It provides confirmation and error messages upon submission as designed.

When I visited a friend to show him the form, we used his Internet Explorer (not sure of the version) browser rather than the FIrefox that I had been used to.

Naturally, the look was slightly different, but upon submission, it went to the PHP page with a simple one word message of: undefined.

We used his laptop which had Chrome and all was well.

Is there a known issue or coding that I need to avoid such instances in real use situations?

 

Link to comment
Share on other sites

I believe the quote marks are in the original scripting, just not included in the expedited question entry.

Also, I will double check, but I do not recall placing any JavaScript in my coding (as PHP was giving me enough troubles on its own... LOL).


 
Edited by phppup
Link to comment
Share on other sites

This is too vague to answer, I think - is the 'undefined' something you wrote in your code? Are you using third party libraries? Post your form and processing code and we'll take a look. My initial thought is that you're doing something like

if(isset($_POST['submit'])){
// process the form
}else{
   echo 'undefined';
}

(assuming the submit button is named 'submit') which won't work with Internet Explorer. But that's only my initial thought because it's something that has bitten a lot of developers.

Edited by maxxd
Clarification
Link to comment
Share on other sites

KUDOS to requinix.

You were correct.  After closer review I realized that I had used a JavaScripted datepicker in my form and it was causing the quirky error.

After removing it, the error vanished.  Replaced it with a simple HTML <input type='date'> and seems to be okay.

GOOD CALL, thanks.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.