Vecteevs Posted August 24, 2010 Report Share Posted August 24, 2010 Sveiki, man ir kādi 20 checkbox lauki, piemēram es gribu izvēlēties tikai 4. un gribu lai datubāzē viņi ierakstās šādi- izvelets1, izvelets2, izvelets6. kā to lai izdara? Quote Link to comment Share on other sites More sharing options...
Kverkagambo Posted August 24, 2010 Report Share Posted August 24, 2010 Pārbaudi ar if(isset($_POST['izvelets1'])) { //ir } Quote Link to comment Share on other sites More sharing options...
ohmygod Posted August 24, 2010 Report Share Posted August 24, 2010 (edited) nosaukumus liec masīvu izvelets[1], izvelets[2],izvelets[6] ... Un tad tikai pieglabā $_POST['izvelets'], kā nu Tev viņš tur jāpieglabā... Edited August 24, 2010 by ohmygod 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.