Re: SID

From: Date: Sat, 04 Nov 2000 11:18:11 +0000
Subject: Re: SID
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-23702@lists.php.net to get a copy of this message
You can pass SID to the function: // function function registrado($sid) { ... print("<form name=\"registrado\" action=\"reservar.phtml?" . $sid . "\" method=\"post\">); ... } // calling the function registrado(SID); Also check if your browser's cookies are disabled, if not the session id will be send with a cookie and SID will not be set. Regards, Gera > 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#23702) next »