Firefox causing empty PHP form variables??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • news@celticbear.com

    #1

    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

  • ZeldorBlat

    #2
    Re: Firefox causing empty PHP form variables??

    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.

    Comment

    • usenet@isotopeREEMOOVEmedia.com

      #3
      Re: Firefox causing empty PHP form variables??

      On 29 Mar 2005 12:59:38 -0800, news@celticbear .com wrote:[color=blue]
      >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.[/color]

      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

      Comment

      • BKDotCom

        #4
        Re: Firefox causing empty PHP form variables??

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

        Comment

        • news@celticbear.com

          #5
          Re: Firefox causing empty PHP form variables??


          BKDotCom wrote:[color=blue]
          > Your biggest problem:
          > not doing any verification of the fields/input before doing the DB
          > update.[/color]

          ::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

          Comment

          Working...