Southwind* Posted July 1, 2011 Report Share Posted July 1, 2011 (edited) Gribu lai , kad ielagojas login.php > aizmet uz index.php un nepazūd sesīja, kā to izdarīt ? :( Kad ielagojas login.php... http://paste.php.lv/fa790b756d7e4ba1cdebf4b4dc59e35e?lang=php Logged In Welcome *ĒPASTS*, you are logged in. [Edit Account] [Logout] Edited July 1, 2011 by Southwind* Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 1, 2011 Report Share Posted July 1, 2011 1) Ar "header("Location: lapa2.php")", 2) Lapā #2 ir jābūt "session_start()"; Quote Link to comment Share on other sites More sharing options...
gta1151 Posted July 1, 2011 Report Share Posted July 1, 2011 To daGrevis 1 variants nav izdevīgs,pamēģini ar $_GET un include <?php if($_GET['lapa'] == 'forums'){ include("forums.php"); } ķipa saprati. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 1, 2011 Report Share Posted July 1, 2011 Nē. Tā darīt ir stulbi. Quote Link to comment Share on other sites More sharing options...
Southwind* Posted July 1, 2011 Author Report Share Posted July 1, 2011 Ar to "header" man ieladē tikai lapas html bet css ņem no esošas lapas. Include taspats. Pievienoju tajā pašā lapā otras css , vienalga neņem pretī html ir bet css nav :( Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 2, 2011 Report Share Posted July 2, 2011 Nu un ko Man Tev pateikt? Meklē kāpēc CSS neiet. Ceļi ir pareizi? Quote Link to comment Share on other sites More sharing options...
_PUIKA_ Posted July 3, 2011 Report Share Posted July 3, 2011 $_GET ir nedrošs variants priekš pārmešanas, bet... īsumā.. 1.reģistrējam sesiju 1.1.url pievienojam specifisku lapas id ar GET 2.palaižam sesiju ( ja grib, var pievienot cookies ) 2.1.izmantojot header aizmetam uz index.php 3.Index.php failā ieliekam IF, kur tiek pārbaudīts GET lapas id un ja ir cilveks ielogojies pieprasam to tavu attiecigo stylesheet,jquery vai ko tu tur gribi nomainit. (attiecīgi visi includi prieks index.php [login sadaļas]) ceru ka pareizi sapratu u ntev noderēs. 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.