|
|
 |
Re: FN-FORUM: PHP - WHAT AM I DOING WRONG
date posted 14th June 2003 14:31
The same as != and == but for example "1" is not = . if you use = then "1"
= 1. In other words if you use === and !== then if you use a numeric without
quotes when comparing with a string then it will not converted to a string
in the comparison.
Hope that makese sense
Pam
----- Original Message -----
From: "James Fidell" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Saturday, June 14, 2003 2:29 PM
Subject: Re: FN-FORUM: PHP - WHAT AM I DOING WRONG
> Quoting PAMELA WHITTAKER [EMAIL REMOVED]
> > sorry - it still doesn't work :-
> >
> > function valid_form($Franchise, $Maximum) {
> > $Error_msgs = 0;
> > if ($Franchise === "Select") {
>
> What's === ?
>
> > $GLOBALS['Franchise_Error_msg'] = "Please select a Franchise";
> > $Error_msgs = $Error_msgs + 1;
> > }
> > $Maximum = trim($Maximum);
> > if (($Maximim !== "") & !(is_numeric($Maximum))) {
>
> and !== ?
>
>
> > if (($_POST['submit'] === "SEND") & valid_form($_POST['Franchise'],
> > $_POST['Maximum'])){
>
> and === here again?
>
> James
>
> ==========
> Graduate & Professional Financial Services - Specialists in MORTGAGES for
> FREELANCERS. House purchase, re-mortgage (including debt consolidation and
> capital raising), Buy to Let, flexible offset and current account
mortgages.
> Visit our website at http://www.gradprof.co.uk?fnet
>
> To advertise here: http://www.freelancers.net/advertising.html
>
> |
 |
|