Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
| Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 11th, 2008, 07:40 AM
Friend of Wrox
Points: 1,075, Level: 12
Points: 1,075, Level: 12 Points: 1,075, Level: 12 Points: 1,075, Level: 12
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2005
Location: , , United Kingdom.
Posts: 244
Thanks: 3
Thanked 4 Times in 4 Posts
Default Loading a html page using php

Hi all,
      I have a page containing this code;
// store session data

if ($_COOKIE["user"]<>"")

} else {

    // start a new session for the user


<form action="login.php" method="post">

    Name: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="txtName" /><br/>
    Password: &nbsp;<input type="password" name="txtPass" />
    <input type="submit" value="Log In"/>

At the top where the session is querying whether to start, I have a cookie check to see if a user has already logged in, if they have to get another page to load up, so how do I do it?


Always ready and waiting to be helped! Soon changing as I have got so much better as a programmer!
Apocolypse2005, I'm a programmer - of sorts.
Old August 4th, 2008, 10:21 AM
Registered User
Join Date: Jul 2008
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

use the include function, which has just one parameter, the name of the file:

http://www.myetymology.com --word etymology website

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML Help file not loading PauloAmado HTML Code Clinic 1 June 15th, 2007 07:10 AM
Loading HTML pages into an ASP.NET page Dsypher ASP.NET 2.0 Basics 4 May 17th, 2007 07:21 AM
loading a html file abaso.jadhav01 ASP.NET 2.0 Basics 0 October 30th, 2006 01:46 PM
Loading HTML into WebBrowser control osemollie Pro VB Databases 7 August 17th, 2006 03:12 PM
Apache loading problem. PHP kfroiland Pro PHP 0 January 21st, 2005 05:04 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.