[PHP] Question about functions

2008-01-24 Thread Jason Pruim
Hi everyone! So, I'm trying to learn about functions, and I think I understand what to use them for... And one of the ideas I had was to write a function to logout of an application. The question I have though, is how do I call it? Right now I just have a link like this: A

Re: [PHP] Question about functions

2008-01-24 Thread Stut
On 24 Jan 2008, at 20:00, Jason Pruim wrote: So, I'm trying to learn about functions, and I think I understand what to use them for... And one of the ideas I had was to write a function to logout of an application. The question I have though, is how do I call it? Right now I just have a

Re: [PHP] Question about functions

2008-01-24 Thread Dave Goodchild
Methink you're a little confused. A function is a piece of code that performs a specific job that can be called. You may send it data, you may not. It may return data, it may not. If your link goes to logout.php, that script may use functions to do it's job. You can't call a function in a link as

Re: [PHP] Question about functions

2008-01-24 Thread Eric Butera
On Jan 24, 2008 3:00 PM, Jason Pruim [EMAIL PROTECTED] wrote: Hi everyone! So, I'm trying to learn about functions, and I think I understand what to use them for... And one of the ideas I had was to write a function to logout of an application. The question I have though, is how do I call

Re: [PHP] Question about functions

2008-01-24 Thread Eric Butera
On Jan 24, 2008 3:08 PM, Dave Goodchild [EMAIL PROTECTED] wrote: header(Location: index.php); Redirect uri's should be absolute. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about functions

2008-01-24 Thread Dave Goodchild
Said it was a crude example and I was pushed for time On Jan 24, 2008 8:13 PM, Eric Butera [EMAIL PROTECTED] wrote: On Jan 24, 2008 3:08 PM, Dave Goodchild [EMAIL PROTECTED] wrote: header(Location: index.php); Redirect uri's should be absolute.