My problem is more html problem than php. I haven't studied HTML very well, I'm more a php developer and I use w3css to style my site.
In one screen there is a menu with all items you own. Each one has a checkbox next to it. On the bottom of screen there is a sell all button. The whole menu is in a form. When I click the button the page gets only refreshed.
I made a debugger that echoes the
Array ( )
<form method="POST" action="/automaty?menu=col">
<ul class="w3-navbar w3-hover-yellow">
<li class="w3-navitem uncommon">
<input type="checkbox" name="var89" value="89" class="w3-check" style="height: 16px"> <b>116x Juice in a bottle 1</b>
<li class="w3-right"><a href="/automaty?menu=col&sell=89">Sell now for 1.25$</a></li>
Wow. That was the most nonsensical bug I ever saw. Do you even see a difference?
<form method="POST" action="/automaty">
<form method="POST" action="/automaty/">
The Chrome network debugger showed me.
First connected to /automaty thru post - error 301 (moved permamently) and automatically redirected to /automaty/ thru GET. That's why form data wasn't being sent.
Really weird glitch, but real.