Skip to content Skip to sidebar Skip to footer

Php Code Works On Chrome, But Not On Firefox Or Ie

My brother has this form:

Solution 1:

The issue was in: if ( isset($_POST['submit']) ) {

because it was a image, and not a regular submit button, it was never set. (but somehow google chrome managed to put it to work)

solution was to add to form: <input name="submit2" type="hidden" value="1"/>

and change the PHP to: if ( isset($_POST['submit2']) ) {

Solution 2:

It may depend on the software you are using to build your pages.

I use Aptana Studio and I found that if you select run from the menu bar, and then run configurations, you can specify in the server dialog to use base url (your server)

I'm pretty sure dreamweaver has similar settings.

Post a Comment for "Php Code Works On Chrome, But Not On Firefox Or Ie"