NBS Posted April 5, 2008 Report Share Posted April 5, 2008 JS kods: http://paste.php.lv/7113 HTML forma: http://paste.php.lv/7115 Viss strādā viss super, bet nesaprotu un nezinu kā varētu izdarīt tā, ka lietotājs ievada vai nu e-pastu vai tikai telefonu. Ja viens no viņiem ir tukšs tad laiž cauri, ja abi tukši tad nelaiž. Meklēju google un skatijos, bet man nesanāk, veidojas errori. Lūdzu, palīdziet. Link to comment Share on other sites More sharing options...
Grey_Wolf Posted April 5, 2008 Report Share Posted April 5, 2008 nu primitiva salidzinasana izmantojot OR (prieksh JS izmanto || ) if($telefons=='' OR $emeils=="") // kads no mainigajiem ir tukshh Link to comment Share on other sites More sharing options...
Grey_Wolf Posted April 5, 2008 Report Share Posted April 5, 2008 nu primitiva salidzinasana izmantojot OR (prieksh JS izmanto || ) if($telefons=='' OR $emeils=="") // kads no mainigajiem ir tukshh Link to comment Share on other sites More sharing options...
NiTrino Posted April 5, 2008 Report Share Posted April 5, 2008 http://paste.php.lv/7117 Link to comment Share on other sites More sharing options...
NBS Posted April 5, 2008 Author Report Share Posted April 5, 2008 Liels paldies ;) Link to comment Share on other sites More sharing options...
Recommended Posts