Re: new to php, need help..

From: Date: Fri, 21 Feb 2003 13:46:57 +0000
Subject: Re: new to php, need help..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-136493@lists.php.net to get a copy of this message
I think the problem is your php.ini setting the global_variable, by default, it is off,coz more secure,so if you want to access the variable, you need $_POST[variable] or $_GET[variable], also, $_env[HTTP_GET_VARIABLE] or $_env[HTTP_POST_VARIABLE] check out the manual on the web -- Sincerely your; pei_world ( .::IT::. ) "Jonathan" <JcIsLord17@hotmail.com> wrote in message news:20030220073353.52148.qmail@pb1.pair.com... > 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 > > >

« previous php.general (#136493) next »