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 >> To: >> Cc: "PHP-General list" >> Sent: Mon, Jun 18, 2012, 9:41 AM >> Subject: Re: [PHP] else if vs switch >> >> This is what I had been u

Re: [PHP] else if vs switch

2012-06-18 Thread April Mains
class text box. iif (($name == "") || ($email == "") || ($phone =="") || ($city=="Select your city") || ($class=="") || preg_match("/[^A-Za-z0-9-\\s\\(\\)\\?\\:\\;@\\.™\\,\\–\\&'\\t]/uis", $class)) {...} Does this do the same t

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' =&

[PHP] else if vs switch

2012-06-15 Thread April Mains
laddress"; break; and so on. Is there a more elegant solution? Thank you for your help, April -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] embedding php in C

2003-08-01 Thread April
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:

[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 => $val"; } } ##

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

2001-02-06 Thread April
ield doing 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

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 P

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

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

[PHP] [newbie] Array form values.

2001-02-05 Thread April
I have a form that is an extended version of this: Unfortunately, the email[1] part was generated using a variable in a loop. I have no idea how many of these fields there really will be each time this is done. I then need to turn around and, while processing the form, extract the values f

Re: [PHP] Suggest for List

2001-02-01 Thread April
ind any that work. - Original Message - From: "Philip Olson" <[EMAIL PROTECTED]> To: "Benjamin Munoz" <[EMAIL PROTECTED]> Cc: "'April'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, February 01, 2001

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 alw

Re: [PHP] Suggest for List

2001-02-01 Thread April
;t think it'd be quite as bad as 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] Sugg

Re: [PHP] phpinfo ?

2001-01-26 Thread April
Look at your source, also. Do you still see the part of the page? If you do, it's not being processed. (configuration is wrong, you named it .htm, something like that). - Original Message - From: "Shane McBride" <[EMAIL PROTECTED]> To: "kaab kaoutar" <[EMAIL PROTECTED]>; <[EMAIL PROTE

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: "

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 PROTE

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

2001-01-26 Thread April
s = 6; $randnum = mt_rand(1,$items); echo $randnum . ""; This always, without fail, returns the highest possible value. 6 in this case. I'm using Apache/4.0.3pl1 on Windows 2000, locally, just to develop. Could this be a cache type problem? Could the gods be conspiring to dr

[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 c

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 d

Re: [PHP] Cookie semi-security.

2001-01-25 Thread April
" <[EMAIL PROTECTED]> To: "April" <[EMAIL PROTECTED]>; "PHP General" <[EMAIL PROTECTED]> Sent: Wednesday, January 24, 2001 4:07 PM Subject: Re: [PHP] Cookie semi-security. > Enable track_vars in php's config and use > $PHP_COOKIE_VARS['

[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 pro

Re: [PHP] Test for Cookies

2001-01-24 Thread April
Not without at least refreshing that page. You can't know if a cookie has set on the same page you set it on. - Original Message - From: "Karl J. Stubsjoen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, January 24, 2001 12:42 PM Subje

[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 bein

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 sin

Re: [PHP] Strings??

2001-01-16 Thread April
done that wrong, I've been doing stuff in ASP the last two weeks and I can't seem to keep them straight anymore. April - Original Message - From: "Benjamin Munoz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, Jan