>
> foreach($newlines as $newline) {
>
> #how do I get the index of the array each time $newline is printed out?
>
> echo ??;
> }
foreach($newlines as $id=>$newline){
echo $id.''.$newline;
}
read the documentation
http://us3.php.net/manual/en/control-structures.foreach.php
--
PHP Gener
> John W. Holmes propably said:
>
> > Is register globals on or off?
>
> On.
>
> Now - without doing anything - i managed to change the value of $lang
to
> 'en' with a link (pagesname.php?lang=en). But i can't change it back
with
> ?lang=se. Should i get someting to eat to get my brain working?
Is register globals on or off?
---John Holmes...
> -Original Message-
> From: Daniel Alsén [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 30, 2002 12:19 PM
> To: php general
> Subject: [PHP] Quickie
>
> Guys,
>
> i've been away for a while - enjoying a much needed vacation in lov
Read chapter: LXXVIII. Session handling functions
Niklas
-Original Message-
From: Peter [mailto:[EMAIL PROTECTED]]
Sent: 22. syyskuuta 2001 8:19
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Quickie
Hi,
I am trying to redirect the user to another page after user
Hi,
I am trying to redirect the user to another page after user authentication
and using sessions.
I was wondering how do you redirect to another page and then at the same
use pass the session ID over to that other page.
Thanks.
Peter
On Fri, 21 Sep 2001, [iso-8859-1] Stig-Ørjan Smelror wrote
> If nothing is beeing sent to output on the page then use header() else
> you need to use javascript.
>
>
> Niklas
>
if headers are sent.
Use header( "Location: file.php" ), as noted earlier, if no headers are sent.
--
Stig-Ørjan Smelror
Systemutvikler
Linux Communications AS
Sandakerv
If nothing is beeing sent to output on the page then use header() else you
need to use javascript.
Niklas
-Original Message-
From: Daniel Alsén [mailto:[EMAIL PROTECTED]]
Sent: 21. syyskuuta 2001 15:51
To: php
Subject: [PHP] Quickie
How do i send the user on to another page at the end
7 matches
Mail list logo