Lejnieks Posted January 30, 2010 Report Share Posted January 30, 2010 if (isset($_SESSION['xxx'])) { echo "viss ok"; } else { echo "nav ievadiits"; } bet ja neievadu vērtību tik un taa raada ka viss ok, ko lai dara? Quote Link to comment Share on other sites More sharing options...
false Posted January 30, 2010 Report Share Posted January 30, 2010 (edited) if($_SESSION['xxx']){ echo "ok"; }else{ echo "nav"; } ? Edited January 30, 2010 by false Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted January 30, 2010 Report Share Posted January 30, 2010 Ko nozīmē neievadu vērtību? Quote Link to comment Share on other sites More sharing options...
briedis Posted January 30, 2010 Report Share Posted January 30, 2010 if (isset($_SESSION['xxx'])) { echo "viss ok"; } else { echo "nav ievadiits"; } bet ja neievadu vērtību tik un taa raada ka viss ok, ko lai dara? ja tu piemēram raksti: $a = ''; //tukšums tad isset($a) atgriezīs TRUE, jo vērtību tu ESI PIEŠĶĪRIS. uztaisi $unset($a) tad isset($a) atgriezīs FALSE, jo mainīgais būs nodzēsts. Quote Link to comment Share on other sites More sharing options...
2easy Posted January 30, 2010 Report Share Posted January 30, 2010 (edited) sesija ir uz visu sesiju vnreiz ievadīji un tā tur būs, kamēr neaizvērsi browseri (visus tabus un logus) ;) manuāli visas vērtības var nahrenizēt ar $_SESSION = array(); Edited January 30, 2010 by 2easy Quote Link to comment Share on other sites More sharing options...
Lejnieks Posted February 1, 2010 Author Report Share Posted February 1, 2010 Ko nozīmē neievadu vērtību? bija domaats, ka ja textbox tiek ierakstiita veertiiba un veelaak to POST un saglabaa kaa sesiju, tad gan ierakstot skaitli gan neierakstot uzraada ka ir viss ok.. buutiibaa kaa login tips, kur neielogojoties uzraada ka nav ielogojies. Quote Link to comment Share on other sites More sharing options...
2easy Posted February 2, 2010 Report Share Posted February 2, 2010 lol, šis "paskaidrojums" visu padara vēl nesaprotamāku! :D:D:D 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.