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
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
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' =&
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
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:
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";
}
}
##
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
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
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
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
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
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
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
;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
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
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: "
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
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
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
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
" <[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['
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
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
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
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
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
28 matches
Mail list logo