Re: [PHP] else if vs switch

2012-06-18 Thread April Mains
. iif (($name == ) || ($email == ) || ($phone ==) || ($city==Select your city) || ($class==) || preg_match(/[^A-Za-z0-9-\\s\\(\\)\\?\\:\\;@\\.trade;\\,\\ndash;\\'\\t]/uis, $class)) {...} Does this do the same thing as isset? Would isset be better? April On Sun, Jun 17, 2012 at 7:41 PM, James ja

Re: [PHP] else if vs switch

2012-06-18 Thread April Mains
On 2012-06-18, at 7:59 AM, James wrote: Original Message From: April Mains aprilma...@gmail.com To: Cc: PHP-General list php-general@lists.php.net Sent: Mon, Jun 18, 2012, 9:41 AM Subject: Re: [PHP] else if vs switch This is what I had been using as the check based on the code

[PHP] else if vs switch

2012-06-15 Thread April Mains
for your help, April -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] else if vs switch

2012-06-15 Thread April Mains
Ah yes that's it. Thank you for your help. Have a good weekend. April On 2012-06-15, at 4:29 PM, Joshua Kehn wrote: Way easier to just use a map. $mapping = array( 'Calgary' = abc@emailaddress, 'Brooks' = def@emailaddress, // etc ); $toaddress = $mapping[$city

[PHP] embedding php in C

2003-08-01 Thread April
that someone wrote a C library to link to php. Has this been done? I have searched the MARC archives for several variations of embedded/link/lib to no avail Thank you, April White -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Just learning . . . HTML Form PHP

2002-08-27 Thread April Lougheed
Dear forum: I'm trying to do several basic things with an HTML form and PHP. So far, I've gotten the form to write to a MySQL database, send email and echo the fields after the form is submitted. Next I'd just like to confirm that the fields are not blank and send a custom error message. But

Re: [PHP] newbie mail() function

2001-02-07 Thread April
Your ''s in your strings are the problem. They need to be escaped, or they will create a parse error. Instead of $msg = "Sender's Full Name:\t$user_name\n"; you should have $msg = "Sender\'s Full Name:\t$user_name\n"; - Original Message - From: "Angerer, Chad" [EMAIL PROTECTED] To:

Re: [PHP] [newbie] Array form values.

2001-02-06 Thread April
this - email, rank, and name, that I know of so far. - Original Message - From: "Toby Butzon" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: "April" [EMAIL PROTECTED]; "PHP General" [EMAIL PROTECTED] Sent: Tuesday, February 06, 2001 10:36 AM Subject: Re: [PHP] [newbie

[PHP] Passing an array as an argument.

2001-02-06 Thread April
How do you pass an array as an argument to a function? My code (or at least the important parts): function process_members($asker_rank, $email) { global $database_mysql; mysql_select_db($database_mysql); while (list ($key, $val) = each ($email)) { echo "$key = $valbr"; } }

[PHP] [newbie] Array form values.

2001-02-05 Thread April
I have a form that is an extended version of this: form input type="text" name="email[1]" input type="text" name="email[2]" input type="text" name="email[3]" /form Unfortunately, the email[1] part was generated using a variable in a loop. I have no idea how many of these fields there really

Re: [PHP] Parse error on blank line...

2001-02-05 Thread April
You missed a } in there. Inside of that else, you have an if, but you never close the else. 190 showmainscreen(); 191} 192 should be 190 showmainscreen(); 191} 192} - Original Message - From: "Jackson, Michael" [EMAIL PROTECTED] To:

Re: [PHP] Parse error on blank line...

2001-02-05 Thread April
argh, nm, I'm an idiot. - Original Message - From: "April" [EMAIL PROTECTED] To: "Jackson, Michael" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, February 05, 2001 4:31 PM Subject: Re: [PHP] Parse error on blank line... You missed a } in there. Inside of

Re: [PHP] Parse error on blank line...

2001-02-05 Thread April
No, I have the same thing happen all the time. It happens after a combination of }'s and ;'s where either a } or a ; is missing. Seriously. - Original Message - From: "Jackson, Michael" [EMAIL PROTECTED] To: "'johnny p.'" [EMAIL PROTECTED]; "April" [EMAIL

Re: [PHP] Suggest for List

2001-02-01 Thread April
you think it would be. - Original Message - From: "Benjamin Munoz" [EMAIL PROTECTED] To: "'April'" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, February 01, 2001 1:47 PM Subject: RE: [PHP] Suggest for List April, There was a discussion like in 1999 (i r

Re: [PHP] Suggest for List

2001-02-01 Thread April
I've been searching for a much smaller PHP beginners lists, away from the official one, because I know I'm much too beginner for this one. Everytime I post, I feel like I'm trying to snatch a cookie in full view of the headmistress, and probably going to get hit with her spoon for it. You'll

Re: [PHP] Suggest for List

2001-02-01 Thread April
Message - From: "Philip Olson" [EMAIL PROTECTED] To: "Benjamin Munoz" [EMAIL PROTECTED] Cc: "'April'" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, February 01, 2001 2:03 PM Subject: RE: [PHP] Suggest for List One suggestion for all newbies (a

Re: [PHP] rand(), mt_rand(), and my inability to make either of them random.

2001-01-26 Thread April
Thanks. It doesn't need to be completely random, just, more random than "1". The occasional 3 would be enough for me. And,t hank you very very much. You forgot the quotes around the U, btw. *huggss* - Original Message - From: "Robert Collins" [EMAIL PROTECTED]

Re: [PHP] rand(), mt_rand(), and my inability to make either of them random.

2001-01-26 Thread April
lol, nm, you weren't. Why does it return Warning: Use of undefined constant U - assumed 'U' in c:\apache\htdocs\temp\random.php on line 4 if I don't use quotes, though? ayway, I'm going to give up on this. Thanks, though. - Original Message - From: "April" [EMAIL

Re: [PHP] How do I to declare a function or procedure in PHP???

2001-01-25 Thread April
function function_name($input, $inputtwo) { // stuff goes in here. } and then call it with: function_name($input, $inputtwo); - Original Message - From: "Bruno Freire" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 25, 2001 10:39 AM Subject: [PHP] How do I to

[PHP] Enabling track_vars.

2001-01-25 Thread April
Is it possible to enable track_vars from a .htaccess doc, and does anyone have a link to a good basic (as in, insanely beginner) tutorial to do it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] Cookie semi-security.

2001-01-24 Thread April
Stupid question, but I'm stumped. I'm passing a persons id through a cookie, then using that to determine if they're allowed to be doing what they're trying to do (change listings, etc.). Right now, I'm getting the value of the cookie by just accessing $cookie_id, without anything fancy. The

[PHP] Using a variable in a variable or as the second part of an array?

2001-01-19 Thread April
I need to simulate this effect: $array[$i] or \$something . $i, and have it return $checkbox1 $checkbox2 etc. on up in a while loop. Just doing it doesn't seem to work, but does anyone know of any work arounds? Or just the keyword I should be looking for to search the manual? I have a form

Re: [PHP] Array help needed

2001-01-18 Thread April
As a generalness, from what I've seen, people who just switched from ASP use somethingUppercase at first. Then forget to capitalize it a few times, and switch to completely lowercase in disgust (case-sensitivity can be quite a shock when you're not used to it). And the people who've done PHP