.
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
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
for your help,
April
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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:
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
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";
}
}
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
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:
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
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
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
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
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
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]
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
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
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
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
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
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
23 matches
Mail list logo