anonīms Posted March 22, 2008 Report Share Posted March 22, 2008 Veidoju kodu, kas ļautu lietotājam ielūgt citu lietotāju pēc viņa id <br />Lietotaja ID: <input type='text' name='ielugt_lietotaju' /> Bet kā var izdarīt, lai input'ā varētu rakstīt tikai skaitļus, vai arī pēc POST viņš pārbaudītu vai input's satur tikai skaitļus? Link to comment Share on other sites More sharing options...
test2 Posted March 22, 2008 Report Share Posted March 22, 2008 $parbaude = $_GET['ielugt_lietotaju']; if(is_numeric($parbaude)==0){ echo "Inputs nesatur tikkai skaitļus!"; } Link to comment Share on other sites More sharing options...
Klez Posted March 23, 2008 Report Share Posted March 23, 2008 (edited) paskaties manuaaliii eregi fciju un tur ir komentaari apakshaa, tos ar izlasi .. Edited March 23, 2008 by Klez Link to comment Share on other sites More sharing options...
p4F Posted March 24, 2008 Report Share Posted March 24, 2008 es vienmēr izmantoju if(is_numeric($_POST['test'])) Link to comment Share on other sites More sharing options...
Aleksejs Posted March 24, 2008 Report Share Posted March 24, 2008 Te bija interesanta diskusija par šo tēmu Link to comment Share on other sites More sharing options...
Recommended Posts