Re: [PHP] session_register()

2001-05-02 Thread Richard Verstegen

Maybe this example will help you:

Program 1:

?php
session_start();
session_register('varA');
session_register('varA');

varA = 
varB = ...
?

Program 2:

?php
session_start();
print($varA $varB);
?


Richard


Jennifer [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I have been racking my brain with this for hours and I am not
 getting anywhere.

 session_register doesn't seem to be registering my variables.

 Several questions to see if I am even on the right track.

 Do you need to register a variable with the session before you
 assign it a value?

 session_register should return true if the variable was
 successfully registered?

 The variable name and it's value should be written to the file
 with the same name as session_id()?

 Jennifer

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Weird error...

2001-05-02 Thread Richard Verstegen

Check your php.ini

[SESSION]
url_rewriter.tags =  .


Richard



elias [EMAIL PROTECTED] wrote in message
9coco0$uq8$[EMAIL PROTECTED]">news:9coco0$uq8$[EMAIL PROTECTED]...
 For some reason, whenever i run my script for the first time in the
browser,
 the static source file get parsed and produces errors

 My script have JavaScript in it, and also my script calls the
 session_start();

 Now first time the script is beeing run, i view source and see in my
static
 part of file:

   tdimg border=0
 src=../images/slogo.gif?PHPSESSID=a969d3d42b6277125c9830a7e09d3cc2/td

 knowing that that previous line is a static part, why the ?PHPSESSID got
 appeneded to it?

 beside that, it changes my original javascript line from:

   tda href=../services/hosting/main.phpimg border=0
 src=../images/shared1.gif onmouseover=JavaScript:
 imgmenu1.src='../images/shared1over.gif' onmouseout='JavaScript:
 imgmenu1.src=../images/shared1.gif' name=imgmenu1/a/td


 to:

   tda

href=../services/hosting/main.php?PHPSESSID=a969d3d42b6277125c9830a7e09d3cc
 2img border=0
 src=../images/shared1.gif?PHPSESSID=a969d3d42b6277125c9830a7e09d3cc2
 onmouseover=JavaScript: imgmenu1.src=../images/shared1over.gif
 onmouseout=JavaScript: imgmenu1.src=../images/shared1.gif
 name=imgmenu1/a/td


 As you notice, the JavaScript statment is now erroneous because the single
 quote got replaced with another double-quote.

 Can any one tell me what's wrong? and how can i overcome this problem?

 thanks.

 -elias
 http://www.eassoft.cjb.net





 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]