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">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
</head>
<body>
<?
// Define Variables
$username=deviantART;
$password=dotcom;
// Sends text and variables to the browser.
echo "<b>Username:</b> $username<BR><b>Password:</b> $password";
?>
</body>
</html>
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?
|