Jump to content
php.lv forumi
Sign in to follow this  
Southwind*

lietotāja ielagošanās.

Recommended Posts

1) Ar "header("Location: lapa2.php")",

2) Lapā #2 ir jābūt "session_start()";

Share this post


Link to post
Share on other sites

To daGrevis

1 variants nav izdevīgs,pamēģini ar $_GET un include

<?php
if($_GET['lapa'] == 'forums'){
include("forums.php");
}

ķipa saprati.

Share this post


Link to post
Share on other sites

Nē. Tā darīt ir stulbi.

Share this post


Link to post
Share on other sites

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 :(

Share this post


Link to post
Share on other sites

Nu un ko Man Tev pateikt? Meklē kāpēc CSS neiet. Ceļi ir pareizi?

Share this post


Link to post
Share on other sites

$_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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...