Wrox Programmer Forums
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) 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 October 21st, 2004, 01:33 PM
Yee Yee is offline
Authorized User
Join Date: Oct 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default PHP code error

Hi there,
This is the code i wrote using php.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=big5">

// Define Variables

// Sends text and variables to the browser.
echo "<b>Username:</b> $username<BR><b>Password:</b> $password";

When i preview or debug in my browser, it show me this

Notice: Use of undefined constant deviantART - assumed 'deviantART' in c:\inetpub\wwwroot\TheTestingPlace\Creating variables.php on line 11

Notice: Use of undefined constant dotcom - assumed 'dotcom' in c:\inetpub\wwwroot\TheTestingPlace\Creating variables.php on line 12
Username: deviantART
Password: dotcom

I did define the constant but it did not produce the result i want. Is there anything i forgot to type or typo error?

Old October 21st, 2004, 03:14 PM
Friend of Wrox
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts

I don't see that you defined the constant anywhere....

-Snib <><
Try new FreshView 0.2!
There are only two stupid questions: the one you don't ask, and the one you ask more than once ;)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with php and this part of the code...? dekemcaffee Beginning PHP 2 September 29th, 2007 05:14 PM
PHP code in the book aplav BOOK: Professional Ajax ISBN: 978-0-471-77778-6 1 September 3rd, 2006 08:28 AM
php - should i code my site with this? bennn Beginning PHP 6 November 25th, 2004 09:31 AM
Error: movie.php & commit.php on p182-186, ch6 willburke BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 October 12th, 2004 02:48 PM
Possible code error in userman.php? Jams30 BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 2 October 27th, 2003 01:21 PM

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