On Sat, 2010-03-13 at 12:22 +0200, Andre Polykanine wrote:

> Hello Martine,
> 
> As you have been already told, the <?=...?> is not always supported.
> However I'd suggest you to do the following (since I love this form of
> tag):
>  <td align="left">&laquo;<?=$_SESSION['scripture_text']?>&raquo;</td>
> 
>  Note: I put within the tag only the variable.
> 
> -- 
> With best regards from Ukraine,
> Andre
> Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthaelon @ 
> jabber.org
> Yahoo! messenger: andre.polykanine; ICQ: 191749952
> Twitter: m_elensule
> 
> ----- Original message -----
> From: Martine Osias <webi...@gmail.com>
> To: php-general@lists.php.net <php-general@lists.php.net>
> Date: Saturday, March 13, 2010, 4:33:34 AM
> Subject: [PHP] Re: PHP Sessions
> 
> The sessions variables are OK. They don't print when I put them on the HTML 
> page with this code.
> 
> <tr>
>  <td align="left"><?="&laquo;".$_SESSION['scripture_text']."&raquo;"?></td>
>  </tr>
> 
> <tr>
>  <td style="font-size: smaller;" 
> align="right"><?=$_SESSION['scripture_ref']?></td>
>  </tr>
> 
> Thank you.
> 
> 
> Martine
> 
> ""Martine Osias"" <webi...@gmail.com> wrote in message 
> news:95.0c.13686.c7cda...@pb1.pair.com...
> > Hi:
> >
> > I need to store variables to send then between pages. I don't need the 
> > variables in a database so I try to send them with sessions. The variables 
> > don't seem to be there when I try to get them. What could be the problem. 
> > Here are the pages where I store and retrieve the variables.
> >
> > Page 1 (variables stored):
> >
> > <?php
> >
> > session_start();
> >
> > $_SESSION['scripture_text']  = $row_scripture['ScriptureText'];
> > $_SESSION['scripture_ref']  = $row_scripture['ScriptureRef'];
> >
> > ?>
> >
> > Page 2 (variables retrieved):
> >
> > <?php
> > session_start();
> > include("includes/config.php");
> > ?>
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> > <html xmlns="http://www.w3.org/1999/xhtml";>
> > <head>
> > </head>
> > <body>
> >
> > <table width="100%" align="center" border="0">
> >
> > <tr>
> > <td align="left"><?="&laquo;".$_SESSION['scripture_text']."&raquo;"?></td>
> > </tr>
> >
> > <tr>
> > <td style="font-size: smaller;" 
> > align="right"><?=$_SESSION['scripture_ref']?></td>
> > </tr>
> >
> > </table>
> >
> > </body>
> > </html>
> >
> > 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


That's still using short tags. The time you save on typing is nothing
compared to the time you spend trying to figure out why your script
doesn't work since you moved servers, or copied it to your live server,
or why you are having trouble using XML...

Thanks,
Ash
http://www.ashleysheridan.co.uk


Reply via email to