''Web Site Terms and Conditions of Use'' Help!

11/20/2014 12:18 LEJYONER(PvP)#31
Quote:
Originally Posted by lCulito View Post
oh, i understand...

In your index change:
header("location: /mensajeTyC.php");

for this:
require_once('/mensajeTyC.php');
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

What Problem ?
11/20/2014 14:22 steppdroid#32
Quote:
Originally Posted by LEJYONER(PvP) View Post
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

What Problem ?
Same error..
Now Term Of Use work but is fused with index.php :confused:
11/20/2014 14:27 bobn171#33
[Only registered and activated users can see links. Click Here To Register...]
11/20/2014 14:30 steppdroid#34
Quote:
Originally Posted by bobn171 View Post
[Only registered and activated users can see links. Click Here To Register...]
the question is not addressed to you.
11/20/2014 14:36 olitis1#35
Quote:
Originally Posted by steppdroid View Post
Same error..
Now Term Of Use work but is fused with index.php :confused:
Learn some basics functions of php. (if, else, endif statements)
11/20/2014 14:37 Luffa#36
Quote:
Originally Posted by steppdroid View Post
the question is not addressed to you.
Then dont post on this thread -.-
11/20/2014 14:37 steppdroid#37
Quote:
Originally Posted by olitis1 View Post
Learn some basics functions of php. (if, else, endif statements)
the base i konow!
11/20/2014 14:46 Luffa#38
Quote:
Originally Posted by steppdroid View Post
the base i konow!
Then fix your CSS.
11/20/2014 14:47 steppdroid#39
Quote:
Originally Posted by Αnonymous View Post
Then fix your CSS.
no, the css is ok...

IF i use
" header("location: /mensajeTyC.php"); "
the graphics is ok, but the php no work.

If i use
require_once('/mensajeTyC.php');
the php work (term of use) but the graphics no (is fused with index.php).
11/20/2014 14:48 Luffa#40
Quote:
Originally Posted by steppdroid View Post
no, the css is ok...
Okay, also where is your else statement?

Cause that can prevent both things getting loaded at once
11/20/2014 15:01 steppdroid#41
Quote:
Originally Posted by Αnonymous View Post
Okay, also where is your else statement?

Cause that can prevent both things getting loaded at once
the function in mensajeTyC.php is:
PHP Code:
<?php 
if(isset($_POST['agreement']) && $_POST['agree'] == '1'):

$_SESSION['acceptTyCsx'] = "OK";
header('location: /');
elseif(isset(
$_POST['agreement']) && $_POST['agree'] != '1'):
echo 
"<script>alert('Please accept Terms and Conditions of Use for continue...');</script>";
endif;
?>
the function in index.php is:
PHP Code:
if(!isset($_SESSION['acceptTyCsx'])):
require_once(
'/mensajeTyC.php'); //With require_once work all but the graphics is fuse with index.php
endif; 
IMAGE
[Only registered and activated users can see links. Click Here To Register...]
11/20/2014 15:25 Luffa#42
Quote:
Originally Posted by steppdroid View Post
the function in mensajeTyC.php is:
PHP Code:
<?php 
if(isset($_POST['agreement']) && $_POST['agree'] == '1'):

$_SESSION['acceptTyCsx'] = "OK";
header('location: /');
elseif(isset(
$_POST['agreement']) && $_POST['agree'] != '1'):
echo 
"<script>alert('Please accept Terms and Conditions of Use for continue...');</script>";
endif;
?>
the function in index.php is:
PHP Code:
if(!isset($_SESSION['acceptTyCsx'])):
require_once(
'/mensajeTyC.php'); //With require_once work all but the graphics is fuse with index.php
endif; 
IMAGE
[Only registered and activated users can see links. Click Here To Register...]

This is some of the most basic stuff you can learn in php, how to use "if then else".

But you say that you know php then i'm not gonna tell you.

Tip; use else in you index.php
11/20/2014 15:34 steppdroid#43
Quote:
Originally Posted by Αnonymous View Post
This is some of the most basic stuff you can learn in php, how to use "if then else".

But you say that you know php then i'm not gonna tell you.

Tip; use else in you index.php
With this
PHP Code:
<?php
if (!isset($_SESSION['acceptTyCsx'])) {
    require_once(
'/mensajeTyC.php');

else {}
?>
IS SOME :(
11/20/2014 19:21 bobn171#44
Quote:
Originally Posted by steppdroid View Post
the question is not addressed to you.
First of all, I'll answer you everytime I want to, btw you should say thanks to waste my time on you cause you don't deserve a single second of it. You can't even do a fucking simple redirection on php. Your programming skills are even worse than the author of this thread. So pls atleast, I know you won't learn, but if someone waste his time on you (yeah is a waste of time write this to you too) atleast don't be rude
11/20/2014 20:58 Arby#45
I'd make a funny joke pretending to use the if command telling him to post in the PServer thread, but I'm dumb and I don't know how to do "le coding".

I've said multiple times, and you should be aware by now. Post in the correct area. This is related to PServers. This should be posted [Only registered and activated users can see links. Click Here To Register...]. You can learn how to code with different languages [Only registered and activated users can see links. Click Here To Register...]. There's a whole section dedicated for Web Development [Only registered and activated users can see links. Click Here To Register...].

Closed - PServer Support Thread. Getting a tad messy as well.
Apologies for being a bit slow here.