Jump to content
xisto Community
Renodil

Php Linking Ned help to do this through a internal portal page.

Recommended Posts

OK I'm trying to create an internal php page to link to my main sites index.html page. Here's the code that's automatically generated when I click on the Create Php page link.

<?php /*Write code inserting output insidevariable $content as in following example.You have DB connection, all global varsand all MKPortal and Forum functions at your availability*/$nome = $mkportals->member['name'];$content="Hi $nome";
So, how would I change this so it links to my sites index.html page?

PS I didn't know where on the forum this type of question should be posted, so I posted it here.

Share this post


Link to post
Share on other sites

I assume there is more to the code than what you are displaying above since there is no closing php token.Also, what is the link to your Home page?What Forum do you have included in your MKPortal?

Share this post


Link to post
Share on other sites

What u have given is not the full message u get...because it must have the php ending tag i.e "?>"U can just include this php file in the index.html by using the the include statement...Or if u want to do something that doesn't have any security issues or it can be viewed by any one...then u can just embed those php statements in the html file itself...what u have to do is just write those php statements in the php tags...Well this is not recommended as the index file is something that is visible to any user..Or u can have an index file as the following...this is the index.php

<?php // Start a sessionsession_start();require_once ('dbconnect.php');//which connects to the databaserequire_once ("functions.php");//several functions?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://forums.xisto.com/no_longer_exists/ to to yoursite</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body><?phpinclude "login.php";?></body></html>

hope this would help

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.