Is there a way to have a javascript value control which php is displayed? For example I'm trying to use an increasing javascript variable to control which php array value is displayed.
So it would go be to the php as something like this in the endCode:var x = 0; while ( x < <?php echo $Total; ?> ) { var address = "<?php echo $Name[?>x<?php ];?>>"; x++; }
and on the actual pageCode:var x = 0; // x=0 while ( 0 < 5 ) { var address = "<?php echo $Name[0];?>"; x++; //x = 1 var address = "<?php echo $Name[1];?>"; x++; // ETC. }
Code:var x = 0; // x=0 while ( 0 < 5 ) { var address = "22 main street city, state, country"; x++; //x = 1 var address = "23 different street city, state, country"; x++; // ETC. }



Reply With Quote

Bookmarks