Re: SID

From: Date: Sat, 04 Nov 2000 01:01:54 +0000
Subject: Re: SID
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-23667@lists.php.net to get a copy of this message
On Fri, Nov 03, 2000 at 09:45:58AM +0000, Kike wrote: > I'm trying to use the SID like this: > <form name="registrado" action="reservar.phtml?<?=SID?>" > method="post"> > > But this form is in a function. Then SID doesn't works. It's appear in the pafge like > this: > <form name="registrado" action="reservar.phtml?" > method="post"> > > > Hown can i resolve it? Thanks. You have two options: a) Turn on asp tags in your php.ini configuration file and change it to: <form name="registrado" action="reservar.phtml?<%= $SID %>" method="post"> b) Don't use asp tags at all: <form name="registrado" action="reservar.phtml?<?php echo $SID; ?>" method="post"> Option (b) is preferrable for portability reasons. Hope this helps. - John

« previous php.general (#23667) next »