RE: [PHP-WIN] a function question

2004-12-29 Thread Dean Hayes
Try this i got this working without any problems prints everything out nice an neetly global $user; global $mail; $user = ucwords($user); // capitalizes the 'p' in patrick $mail = strtolower($mail); // converts all of FOJOMO into lower case if (preg_match("/@/"

[PHP-WIN] a function question

2004-12-29 Thread Patrick Roane
I am trying to create a function that works with two arguments. the 1st needs to be a suername. The 2nd needs to be an email address. Next, I have to use case conversion functions to capitalize the first letter of the username and convert the email add. to lowercase characters and finaly check that

Re: [PHP-WIN] About "\n"

2004-12-29 Thread Jason Barnett
Graeme wrote: > Hi, > > What the "\n" does is to throw a newline in your source code. So when > the page is displayed look at the source that has been generated you > will see the blank line. This can be useful to make the HTML source > readable. However to get a new line displayed in the browser

Re: [PHP-WIN] About "\n"

2004-12-29 Thread graeme
Hi, What the "\n" does is to throw a newline in your source code. So when the page is displayed look at the source that has been generated you will see the blank line. This can be useful to make the HTML source readable. However to get a new line displayed in the browser your need to use a tag, o

Re: [PHP-WIN] About "\n"

2004-12-29 Thread Michael Purdy
Michael "\n" will not be recognised by your browser. Remember it expects to see HTML and not DOS style new line markers. Try echo ''; or echo ''; instead Mike - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Wednesday, December 29, 2004 7:36 PM Subject: [PHP-WIN] About "\n

[PHP-WIN] About "\n"

2004-12-29 Thread michael
Hi I'm new in php, I find the "\n" dosen't work in my machine First PHP page The result is First PHP page Hello World! Hello World! any suggestion?? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] About the unexpected T_VARIABLE

2004-12-29 Thread Denis Gerasimov
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 29, 2004 8:41 AM > To: php-windows@lists.php.net > Subject: [PHP-WIN] About the unexpected T_VARIABLE > > Hi; > > I'm new in php. I has try some sample code in the book > $hamburger =

[PHP-WIN] About the unexpected T_VARIABLE

2004-12-29 Thread michael
Hi; I'm new in php. I has try some sample code in the book But I always get "Parse error: syntax error, unexpected T_VARIABLE in e:\Inetpub\wwwroot\meal.php on line 2" So any suggestion Regards Michael -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph