Re: [PHP] Re: function? variable?

2002-02-11 Thread Keith V. (Vance Consulting LLC)
Can you be more specific? I am just guessing here but is this what you want: ? $title = home; ? html head title ? echo $title; ? /title /head body ? echo $title; ? /body /html Perhaps, I am not getting what you are asking for. On 11 Feb 2002 at 23:34, Jason Whitaker wrote: I just saw

Re: [PHP] preserving variable values across pages.

2002-02-11 Thread Keith V. (Vance Consulting LLC)
You could do it a number of ways. 1. Use a hidden input field in your form,. input type=hidden name=some_var value=? echo $some_var; ? 2. Put $some_var in a session variable. 3. Pass the value of some_var in the url. Each has it's advantages/disadvantages. Just remember that just because you

Re: [PHP] PHP Work in New York

2002-02-12 Thread Keith V. (Vance Consulting LLC)
On 12 Feb 2002 at 20:28, Michael Sims wrote: At 06:27 PM 2/12/2002 -0500, J Smith wrote: Last week I looked at some VBScript/ASP code that I kind of need to port to PHP. I was mortified. It is truly appalling, isn't it? ;) I have actually converted a large portion of my companies

RE: [PHP] PHP Work in New York

2002-02-12 Thread Keith V. (Vance Consulting LLC)
On 13 Feb 2002 at 13:33, Jason Murray wrote: I figure if I'm forced to go M$ I'd much rather use C# that VBScript... C# actually seems to be getting quite a lot of positive mentions in the *nix world at the moment. Interesting, where are you seeing them? I am not being a jerk, I am

RE: [PHP] PHP Work in New York

2002-02-12 Thread Keith V. (Vance Consulting LLC)
, sorry. If anyone wants to respond to this, just email directly. On 12 Feb 2002 at 23:41, Michael Sims wrote: At 08:46 PM 2/12/2002 -0800, Keith V. (Vance Consulting LLC) wrote: On 13 Feb 2002 at 13:33, Jason Murray wrote: I figure if I'm forced to go M$ I'd much rather use C

RE: [PHP] Php is serversided????

2002-02-13 Thread Keith V. (Vance Consulting LLC)
Just remember that what the user sees is always just static html. If some decision needs to happen the user has to send some sort of request of the web server to do something, and that's where PHP does its thing. For client-side stuff, like Java Applets. There is actually code running on the

Re: [PHP] Re: mail headers

2002-02-13 Thread Keith V. (Vance Consulting LLC)
On 13 Feb 2002 at 17:33, Renato Salvatore Moya L. wrote: Hi, i'm writte from Chile. If you writte to little php-script for send mail, what send you mail ?. I question you, because i'm writte a tipical php-script tell a friend, but i have problems with getenv(HTPP_REFERER), because send

RE: [PHP] Re: mail headers

2002-02-13 Thread Keith V. (Vance Consulting LLC)
On 13 Feb 2002 at 14:40, Rick Emery wrote: Renato, To send mail, use PHP's mail() function: mail($recipient,$subject,$message,$headers); You can reference $HTTP_REFERER directly without saying getenv(HTTP_REFERER) Yeah, and if your mail function is being called within a function, just

Re: [PHP] good practice

2002-02-15 Thread Keith V. (Vance Consulting LLC)
On 15 Feb 2002 at 10:50, Michael Kimsal wrote: Erik Price wrote: On Thursday, February 14, 2002, at 04:40 PM, Michael Kimsal wrote: On that same topic, *why* do people name files with both .inc and .php? Your .inc file has PHP code in it, right? Why not just call it .php and