/    Sign up×
Community /Pin to ProfileBookmark

[CODE]if (isset($_POST[“heightImperial”], $_POST[“weightImperial”], $_POST[“heightMetric”], $_POST[“weightMetric”]))[/CODE]

Would the above mean:
if $_POST[“heightImperial”] AND $_POST[“weightImperial”], AND $_POST[“heightMetric”] AND $_POST[“weightMetric”] ARE SET

or
if $_POST[“heightImperial”] OR $_POST[“weightImperial”], OR $_POST[“heightMetric”] OR $_POST[“weightMetric”] ARE SET

Doesn’t seem to be working as I expected.

Thanks,
TK

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@artemisMar 17.2008 — Always try here first: http://uk.php.net/isset

So it means AND in answer to your question
Copy linkTweet thisAlerts:
@bokehMar 18.2008 — And
×

Success!

Help @AnotherMuggle spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...