Any of the following will work: <? echo $var;?>
<? echo "$var";?> <?=$var?> If these don't work I suggest adding this to your script and reloading the page: <? echo phpinfo(); ?> That should print your php info screen, if it does not then you have a configuration issue. - Mike > -----Original Message----- > From: Sandra Rius [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 26, 2003 6:04 AM > To: [EMAIL PROTECTED] > Subject: [PHP-INST] Problem > > > Hi, > > I have installed php 4.3.1 in my Apache server 1.3.2 as a > server module abd the operative system is Window 98. It works > with my php scripts but, when I try to pass variables to a > php from another file or from the browser, php doesn't > recognise the variable. > > For example, with a script like this: test.php > <html> > > <body> > <?echo $var;?> > </body> > </html> > when I call it from a browser like this: > test.php?var=hello > I get a blank screen. I have tried this script in other php > servers and it works correctly. So maybe I have to load a > specific module or parameter. Could somebody help me ? > > Thanks. > > Sandra > -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php