mach1ne^ Posted July 22, 2009 Report Share Posted July 22, 2009 Tiek padots formas lauks: <form action="" method="post"> <input type="text" name="kkas[0]"> <input type="text" name="kkas2[0]"> <input type="text" name="kkas[1]"> <input type="text" name="kkas2[1]"> <input type="submit" value="submits.."> </form> Apstrādes vietā vajag sekojošu lietu, lai ieraksta: kkas[0], kkas2[0] kkas[1], kkas2[1] ...līdz ir [] Ja būtu tikai kkas[], tad jau būtu sekojoši: foreach ($prece as $value) { //kverijs $value; } Kā var viņus apvienot vienā reizē? ;) Quote Link to comment Share on other sites More sharing options...
xPtv45z Posted July 22, 2009 Report Share Posted July 22, 2009 foreach ($kautkas as $nr => $value){ echo $value;//kautkas echo $kautkas2[$nr]//kautkas2 } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.