Hallo,
Meine Frage deshalb: Wieso ist $_POST['cart'] nur hin und wieder gesetzt?
Weil es so ist. Punkt. ;-)
Im Ernst: Zu <input type="image" ...> steht in der HTML 4 Spec.:
http://www.w3.org/TR/html401/interact/forms.html#edef-INPUT
"image
When a pointing device is used to click on the
image, the form is submitted and the click coordinates
passed to the server. The x value is measured in pixels
from the left of the image, and the y value in pixels
from the top of the image. The submitted data includes
name.x=x-value and name.y=y-value where "name" is the
value of the name attribute, and x-value and y-value
are the x and y coordinate values, respectively."
Und in der dclp-FAQ
http://www.dclp-faq.de/q/q-formular-image.html
steht, dass PHP cart.x zu cart_x umwandelt, weil
Variablennamen in PHP keine Punkte enthalten duerfen.
Gruesse,
Thomas
Dank /my/ automatisch ausgeblendet: JavaScript, ASP.
Manuell "ausgeblendet": Threads mit Frames, Iframes und Scrollbalken im Subject...
Bitte keine Mails mit Fachfragen - dafuer gibt es das Forum!