Well I was thinking it was a Firefox issue in the sense that:
1) This does not occur at all with IE and Opera, and
2) The Form action POST and corresponding data (in this case I only have one form field set with the name of invcode and I set that = to $sentcode (see below). So when any of the order buttons is clicked the value of form 'invcode' is first updated with that products information, then the form is processed, or sent to the order.php page. This page uses the (only one POST item sent) to update my cart TABLE usercart1, this is done with an INSERT.
Therefore I think some freaky code has been overlooked.
Or between when the order button is clicked and when my Firefox Browser is submitting the POST form data to be proccessed in order.php.
Remember all three browsers do this same thing.
Order of events:
1) Click order button
2) Update hidden formfield 'invcode' with the product code of the item selected.
3) Form action to order.php
First SELECT the record/row data FROM rockid that corresponds with the item $sentcode.
Then write those results to an array and echo that out.
Then SELECT FROM usercart1 and echo that out
Then a DELETE FROM usercart1 WHERE $sentdata ="" (comment this one out sometimes as I check)
Then INSERT INTO usercart1 ($sentdata info)
Then SELECT FROM usercart1
Then turn that into an array that I use to display whats in the cart
Then at the end I re-echo usercart1
With Firefox: (with DELETE commented out)
first item click:
All the code is processed and both usercart1 echos appear to be complete and correct (first echo is empty and second has one item).
In myphpadmin there is a blank extra row. (either the usercart1 querys did not detect this or it was put there after the order.php page was run.
second item click:
All the code is processed and both usercart1 echos show the extra blank line.
In myphpadmin there is a blank extra row, but just one not two. (there is always just one extra row never more and if i delete it out with myphpadmin the next click will just add another one! :eek:
The DELETE statement does help me keep things in line for what I want to do, but seems very uneccessary!
With IE and OPERA: (with DELETE commented out)
NEVER SEE AN EXTRA ROW AT ANY TIME WITH DELETE COMMENTED OUT OR NOT
(over the next few days i'll try to run some simple pages with INSERTS in other tables and see what happens)
Thanks again to everyone checking this out!