468,315 Members | 1,403 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,315 developers. It's quick & easy.

Firefox causing empty PHP form variables??

This is really weird, and I would never believe it possible if it
weren't actually happening to me.

I've a customer database in mySQL, using PHP to create the forms, yadda
yadda.
All of a sudden, every time I edit a customer, when I submit the form
using Firefox 1.0.2 on Linux (Fedora Core 3) it sends empty form fields
to the database.

BUT, if I use Firefox on Windows, or Opera on Fedora Core 3, it works
perfectly fine.

Any ideas what in the world could cause this?
Firefox on Linux worked fine to up until...the last few days I think.
The only think I can think of, is I may have installed a couple of
extensions during that time.

Anyway, has anyone else seen this?

Thanks!
Liam

Jul 17 '05 #1
4 1910
Take a look at how your <form> tags are nested between other tags (like
<table>, <tr>, <td>, etc.). I've run into weird problems where either
the <form> tag is not properly nested, or just by moving it inside or
outside of the other tags.

Jul 17 '05 #2
On 29 Mar 2005 12:59:38 -0800, ne**@celticbear.com wrote:
I've a customer database in mySQL, using PHP to create the forms, yadda
yadda.
All of a sudden, every time I edit a customer, when I submit the form
using Firefox 1.0.2 on Linux (Fedora Core 3) it sends empty form fields
to the database.

BUT, if I use Firefox on Windows, or Opera on Fedora Core 3, it works
perfectly fine.

Any ideas what in the world could cause this?
Firefox on Linux worked fine to up until...the last few days I think.
The only think I can think of, is I may have installed a couple of
extensions during that time.


Shot in the dark : There's an extension that lets the user switch POSTs to
GETs, and vice versa. Might be switched on. I don't recall exactly what it's
called, but it puts a drop-down in the toolbar that reads 'Forms.'

HTH
Jul 17 '05 #3
Your biggest problem:
not doing any verification of the fields/input before doing the DB
update.

Jul 17 '05 #4

BKDotCom wrote:
Your biggest problem:
not doing any verification of the fields/input before doing the DB
update.


::thunks head repeatedly on desk::
OK, I'm a complete bonehead.
Sort of.
This is a form where empty fields may actually be legit. But I should
probably check that if ALL fields are submitted blank (which is nearly,
but not totally, unreasonable) then I should prompt a "confirm".
Thanks!
Liam

Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Wayno | last post: by
3 posts views Thread by tornado | last post: by
7 posts views Thread by Dan | last post: by
6 posts views Thread by Geoff | last post: by
4 posts views Thread by Dave Blair | last post: by
4 posts views Thread by Stuart Perryman | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.