Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   PHP (http://www.programmingforums.org/forum29.html)
-   -   PHP form not processing via FireFox (http://www.programmingforums.org/showthread.php?t=13315)

Druid Jun 9th, 2007 12:50 PM

PHP form not processing via FireFox
 
I have a PHP script that processes a form, which inbetween calls a javacsript to check the form contents. It works fine in IE, but doesn't in Firefox.

In order for it to completely process in Firefox I have to leave a field blank, let the javascript prompt me that its blank, then click ok, enter the field's value then click submit.

I don't really think the javascript is the issue, because I commented it out and i was still not able to process the form by clicking submit in Firefox.

The form tag is:

<form method="post" action="thephpfile.php" target="_top" onsubmit="return checkform(this);">
...
</form>

Maybe the target attribute has something to do with it... I'll check now.

Has anyone seen anything similar?

mattireland Jul 14th, 2007 2:22 PM

This should work. I hate cross-browser compatability errors.

Can't suggest anything - sorry.

kruptof Jul 14th, 2007 2:43 PM

Maybe you should post the JavaScript code that you used

DaWei Jul 14th, 2007 2:48 PM

If the form validates, add a statement to submit the form. If it doesn't validate, don't submit it.


All times are GMT -5. The time now is 3:04 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC