• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

PHP Site (how to) Include.

jpkulik

New Member
Joined
Mar 15, 2008
Messages
208
Reaction score
2
Hello all!
I have buyed a layout, and im making a Otserver site on this.
ok, i have the "AFS-CMS v0.2.2"
Well..
The problem is:
I make a include in the home when:
PHP:
                          <p>&nbsp;<?php switch($_GET['id']) { 
				                               default: include('home.php'); break; 
						               case "account": include('account.php'); break; 
						               case "screen_shoots": include('screen_shoots.php'); break; 
									   case "news": include('news.php'); } ?></p>
That is to open the account home into the index frame.


OK,
Now..in the form:
That is to goto account home
PHP:
<form action="account.php?page=login" method="post">
And i changed:
PHP:
<form action="id=account?page=login" method="post">
That is supossed to work, no?
I hope someone can help me.
Tankyou
 
Try this on the form:

HTML:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>?id=account&page=login" method="post">
OK.. I got some results.
but i get this error;
PHP:
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\1.php:3) in C:\xampp\htdocs\account.php on line 23
Im looking for someone to help.. I can pay for it.
Tankyou, cya
 
Back
Top