neo Posted June 15, 2005 Report Posted June 15, 2005 Kaa var paarbaudiit vai adresee ir padots vismaz viens $_GET[] mainiigais?
neo Posted June 15, 2005 Author Report Posted June 15, 2005 (edited) paldies. tas dereeja. meeginaaju izvadiit visus $_GET mainiigos uz ekraana, bet laikam kaut ko ne esmu sarakstiijis pareizi jo nekas neizvadaas. $m=$_GET; for ($i=0;$i<count($m);$i++) { echo $m[$i]; } Edited June 15, 2005 by neo
bubu Posted June 15, 2005 Report Posted June 15, 2005 Nu, protams, ka tā nevar. $_GET taču nesatur elementus ar skaitliskiem indeksiem, bet gan ar tekstuālus (nu tādus kā padod urlī). Vajag šitā: foreach($_GET as $key=>$value) { echo "$key=$value\n"; } Un ja gribi vienkārši debugošanas nolūkiem izmantot izvadīšanu browserī, tad raksti vienkārši print_r($_GET);
Recommended Posts