Wrox Programmer Forums
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To 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 February 7th, 2006, 07:02 AM
Registered User
Join Date: Feb 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default flat file login

Hi Guys,

I am try to create a login page through a flat file, but i am experincing so problems wondering if you can help me out!

I have created a .txt file called data.txt which is placed in the same place has my php pages a login.php and register.php. I want to collect user info such as name password address etc. and store that into a text file which i have managed to do, i have also manged to print out the content of the data.txt file on to the screen.

However i want the login.php to take in the username and password and match it with the uasername and password held in the data.txt. Also if the users login is correct i want to take them to a page on my server i.e. orderForm.htm so i need to some how redirect them!

There seems to a lot of links and scripts about if you are using MYSQL however i cant seem to find any scripts for using a flat file.

Thanks giys!

Similar Threads
Thread Thread Starter Forum Replies Last Post
Masking flat file longs Linux 0 August 2nd, 2007 04:50 PM
Converting Flat File to Access arholly Access 16 July 9th, 2007 06:09 AM
How to open up a flat file daniel_arney Beginning VB 6 1 September 27th, 2006 02:40 PM
Need help with my Flat File Schema cmiller66 Biztalk 0 August 21st, 2006 10:48 PM
Problem using positional flat file Sameer_Borikar Biztalk 0 March 3rd, 2005 08:11 AM

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