formularz podając kod Ajax:Odzyskiwanie szeregować dane w pliku php o nazwie użyciem Ajax
var str = $("form").serialize();
alert(str);
// var [email protected](str);
//alert(uns);
$.ajax({
type: "POST",
url: "update.php",
data: "box1="+str,
success: function(value)
{
$("#data").html(value);
}
HTML Form
<form> <input type=checkbox name=box[] value='1'/><input type=checkbox name=box[] value='2'/> </form>
w moim php
$ polu = $ _ POST [ 'box1' ];
How to access the each of the box variable values in php side.
Dokonałem zmian, co sugerujesz mi, ale to daje mi następujący komunikat o błędzie: Ostrzeżenie: podano niepoprawny argument dla foreach() w – MAK
Dziękuję człowieku ... działa dobrze. – MAK