[PHP] Re: new to php, need help..

2003-02-25 Thread Steve Magruder
Jonathan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 all the suggestions didn't work though, could it be as what chris said, my
 IE doesn't support php?

PHP is server-side.  IE has no issues whatsoever with loading HTML generated
from PHP.  The PHP constructs are dealt with on the server-side and never
make it to the client.

Steve



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



[PHP] Re: new to php, need help..

2003-02-21 Thread pei_world
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 [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 hi all, i've only begun learning php around 1 week ago, i'm having trouble
 with this code,

 html
 head
 titleUntitled 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




[PHP] Re: new to php, need help..

2003-02-20 Thread John Taylor-Johnston
Just a hunch:

? echo $subject[0]; ?

Try using ?php instead, as in:

?php echo $subject[0]; ?

Do you have a URL to show us what your page does and doesn't do?


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




[PHP] Re: new to php, need help..

2003-02-20 Thread Jonathan
thanks for helping guys :)

sorry i don't have a url that i can upload my files too.. all i can show is
my code.. :(

the original code that i got from is from :
http://www.linuxguruz.org/z.php?id=33

example 5:

examples 1-4 seems to work, but other examples with this line doesn't,
input type=text NAME=subject[0] value=? echo $subject[0]; ? /

if you click on the demo button, that's what it's suppose to show, but for
my case, in example 5,
instead of showing Enter Subject A ,Enter Subject B in both input text
fields,
it shows ? echo $subject[0]; ? , ? echo $subject[1]; ? , without the
s
everything else is the same

all the suggestions didn't work though, could it be as what chris said, my
IE doesn't support php?

is there anyway to find out?

Thanks again for helping :)

jon


John Taylor-Johnston [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Just a hunch:

 ? echo $subject[0]; ?

 Try using ?php instead, as in:

 ?php echo $subject[0]; ?

 Do you have a URL to show us what your page does and doesn't do?




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