ManyMan Posted June 28, 2006 Report Share Posted June 28, 2006 Kā lai izsauc funkciju kura atrodas tajā pašā lapā? Piemēram ir lapa.php un tajā ir forma un vajag lai kad nospiež post izpildias funkcija no šīs pašas lapas Link to comment Share on other sites More sharing options...
andrisp Posted June 28, 2006 Report Share Posted June 28, 2006 Skriptā ieliec: if (isset($_POST['kautkaads_formas_mainiigais_peec_kaa_nosaki_vai_forma_submitota'])) { mana_fja(); } Link to comment Share on other sites More sharing options...
ManyMan Posted June 28, 2006 Author Report Share Posted June 28, 2006 Bisku nesapratu A ko man te ---<form action="action.php"----------- rakstiit lai izpiltiies tikai 1 funkcija no šīs pašas lapas (no index.php nevis no action.php jo pagaidām action.php ir uztaisiita tikai lai izpiltiiti 1 funkciju un besii ārā ka pēc tam japāradresē atpakalj uz index.php) Link to comment Share on other sites More sharing options...
andrisp Posted June 28, 2006 Report Share Posted June 28, 2006 Nu tad uzliec action="index.php" un lieta darīta Link to comment Share on other sites More sharing options...
Recommended Posts