Re: String Length ??
| From: | gordon stewart | Date: | Mon, 22 Mar 2004 13:14:16 +0000 |
| Subject: | Re: String Length ?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181133@lists.php.net to get a copy of this message | ||
--- Filip de Waard <dewaard@netcollective.nl> wrote:
> strlen() is the correct function to use here. Use it
> like:
>
> echo strlen($_POST['input_name']);
Thanks...
> Where $_POST['input_name'] should be replaced by the
> variable you want
> to check. strlen() is always right, but it counts
> the actual charactars
> of the string (which may differ from those who are
> shown in the
> browser, please look at the HTML source instead).
Ok - Will do...
> Secondly, please use lowercase for HTML tags and use
> <br /> instead of
> <BR>...
Hmm - why <br /> ???
Is that PHP code - or HTML code ? - Ive seen it around
a few places - But havnt bothered to ask (till now)
- Or is there a 'hidden' process that PHP
uses the " / " for ??
- Ok - Off to look at HTML source, then off to bed...
Thanks
G
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html