Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
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 August 5th, 2004, 08:17 PM
Registered User
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to avoid printing out notice

Hi
I have two pages. The first page is login in page. And the second page is a page to process user login and password.
However, when i try to access the second page, Notice: Undefined index: always happen. So can anybody tell me how to avoid printing out the notice? thanks


 
Old August 6th, 2004, 06:54 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Edit your php.ini file: find the bit where it say "ERROR REPORTING". Directly above it should be a list of the options you can assign it. E_ERROR, or something like that should be okay. Yu can change the setting on the fly, and see what suits you. On a Windows machine with an NT5 kernel (like XP or 2000) php.ini lives in C:/WINNT/. On Linux/Solaris/FreeBSD it's usually to be found somewhere like /etc/httpd/.

Take it easy,
Dan





Similar Threads
Thread Thread Starter Forum Replies Last Post
Notice: Undefined index: username in latinquarter PHP Databases 1 April 18th, 2008 11:37 AM
PHP Sessions - why do I get a warning notice mcmahonc Beginning PHP 0 July 1st, 2007 07:41 AM
Notice: Only variables should be assigned by refer harpua Beginning PHP 0 August 22nd, 2006 10:47 AM
How to avoid printing "1" after Sendkeys font45 Excel VBA 2 August 18th, 2006 05:21 PM
Notice: Undefined offset: ## Herjan BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 November 27th, 2005 12:29 PM





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