Hi John,
I was thinking of inserting a check on each option, but I thought there
had to be a different way.
I've received ideas of storing the option values in an array and
creating a function to generate that dropdown by grabbing values out of
the array, so I want to go with that because that
Hi,
I have a conditional:
if (a == b)
a is the number 0, but b is a string Friday August 22.
The condition is evaluating as true, which is not what I want.
What am I misunderstanding?
Thanks,
Stephen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Cal,
Thanks for the suggestion. I looked up equality on www.php.net, and
there are many comments about how == works.
I also found out === works too, or is that still lazy?
Thanks,
Stephen
Cal Evans wrote:
Stephen,
Friday August 22 evaluates to the number 0. (check the docs for intval())
PROTECTED]
To: webapprentice [EMAIL PROTECTED]
Cc: James [EMAIL PROTECTED]; Jason Murray
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, March 27, 2002 12:24 AM
Subject: Re: [PHP] Any PHP equivalent of Macromedia ColdFusion's location
tag?
Hi Mr. Lerdorf,
I look forward to you upcoming
Is there any PHP function that works like ColdFusion's location tag?
After a certain execution, I wish to leave the current PHP page entirely and go to
another page. Is this possible?
I'm scouring the help stuff and am still digging for answers.
Thanks.
refreshing the page and causing the PHP page to submit again.
Thus, is there something else I can do? Or am I just not seeing this?
Thanks,
Stephen
- Original Message -
From: James [EMAIL PROTECTED]
To: webapprentice [EMAIL PROTECTED]
Sent: Tuesday, March 26, 2002 10:20 PM
Subject: Re: [PHP
(since the PHP processor probably translates whitespace as
echo/print statements).
Thanks.
--Stephen
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: webapprentice [EMAIL PROTECTED]
Cc: James [EMAIL PROTECTED]; Jason Murray
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent
Hi,
foobar becomes simply \
I've lost foobar AND the double quotes. Is there a way to keep them all?
--Stephen
- Original Message -
From: Miguel Cruz [EMAIL PROTECTED]
To: webapprentice [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, March 23, 2002 7:49 PM
Subject: Re: [PHP
[realName]));
or
stripslashes(htmlspecialcharacters($HTTP_POST_VARS[realName]));
Thanks for your help in leading me to the right direction.
- Original Message -
From: Miguel Cruz [EMAIL PROTECTED]
To: webapprentice [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, March 23, 2002 8:03
Hi,
I have a form with a text field, say userName.
I put a value in that has double quotes (i.e. foobar) and submit this form.
On output I have this:
?php echo $HTTP_POST_VARS[userName]; ?
The output ends up being a \.
How do I keep the double quotes?
Thanks,
Stephen
Oh, so that's how you deal with indexed variables inside of double quotes...
I can't believe that has eluded me for so long...
---
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Mon, 11 Mar 2002 12:09:15
Hello,
When I try to do this:
$foo = Entry for for $HTTP_POST_VARS[\name\];
I receive this error:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' on line X
Why does it do this, and how do I get around this, besides assigning the
value of $HTTP_POST_VARS[\name\]
I'll have to use and if/elseif construct, because I don't believe a switch()
constructs cases can take expressions, can it?
- Original Message -
From: Bogdan Stancescu [EMAIL PROTECTED]
To: webapprentice [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, January 05, 2002 11:38 AM
longer than what is here.)
- Original Message -
From: Tom Rogers [EMAIL PROTECTED]
To: webapprentice [EMAIL PROTECTED]; Bogdan Stancescu
[EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, January 05, 2002 11:17 PM
Subject: Re: [PHP] Checking the season
Hi
This should work:
?
$year
Hi,
Just need a sounding board to help me think this through.
I want to check the current date to determine what season it is and display the
appropriate picture.
I define spring as 03/21/, summer as 06/21/, autumn as 09/21/, and winter
as 12/21/.
I form a string for the
15 matches
Mail list logo