RE: [PHP] Quickie array question

2003-06-11 Thread Jennifer Goodie
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 General

RE: [PHP] Quickie

2002-09-30 Thread John W. Holmes
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 lovely

RE: [PHP] Quickie

2002-09-30 Thread John W. Holmes
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? Here's

RE: [PHP] Quickie

2001-09-22 Thread Niklas Lampen
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

RE: [PHP] Quickie

2001-09-21 Thread Peter
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

RE: [PHP] Quickie

2001-09-21 Thread Niklas Lampén
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

RE: [PHP] Quickie

2001-09-21 Thread Stig-Ørjan Smelror
If nothing is beeing sent to output on the page then use header() else you need to use javascript. Niklas meta http-equiv=Refresh; Content=0; URL=file.php if headers are sent. Use header( Location: file.php ), as noted earlier, if no headers are sent. -- Stig-Ørjan Smelror