Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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.
Reply With Quote
  #2 (permalink)  
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
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 01:13 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.