I am working with ajax php i am having a problem i.e
I am passing a javascript list in a ajax request
data: "user_names="+ user_names ;
i am getting this list on php page like
$participants_names = $_GET['user_names'];
and i am trying to iterate that list like
for ($i = 0; $i <= $participants_names; $i++) {
print $i;
}
but i am not getting the result actualy i am from python and touching this first time in ,php so plz help me out where i am derailing .
$_GET['user_names']is a string. You can use explode or split php function to make it an array.If
user_namesis a comma-separated list of names :