Try naming the file with a .php extension. It is also possible your server does not support php.

Good luck,
Chris

From: "Jonathan" <[EMAIL PROTECTED]>
Reply-To: "Jonathan" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [PHP] new to php, need help..
Date: Thu, 20 Feb 2003 01:34:12 -0600

hi all, i've only begun learning php around 1 week ago, i'm having trouble
with this code,

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?
if (isset($subject)) { echo "$subject[0]<br />";
echo "$subject[1]<p />"; }
else { $subject[0] = "Enter Subject A";
$subject[1] = "Enter Subject B"; } ?>
<FORM ACTION="<? echo $PHP_SELF; ?>">
<input type="text" NAME="subject[0]" value="<? echo $subject[0]; ?>" />
<input type="text" NAME="subject[1]" value="<? echo $subject[1]; ?>" />
<input type="submit" value="Submit!" />
<input type="reset" value="Reset" />
</FORM>

</body>
</html>

i got the body code from www.linuxguruz.org

but i can't seem to get my input value correct,

rather then parsing the variable subject[0]

it passes the words "<? echo $subject[0]; ?>"  as the value instead,


i'm using macromedia dreamweaver MX as my html text editor

pls help... thanks!

Jonathan




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to