A lot of people think that
Can't fault them.
until their host upgrades php.
Any host that upgrades the PHP version (a major upgrade considering it
would be 5 - 6) without notifying Customers isn't a very good hosting
company, and you really should change to a better one (Rackspace are
2008/5/14 Chris W [EMAIL PROTECTED]:
A lot of people think that, until their host upgrades php. Have you
seen how many things are being removed for php6?
From the article I read, that isn't one of them.
That issue specifically, no. However, portable code is desirable even
if your code is
2008/5/14 Richard Heyes [EMAIL PROTECTED]:
Any host that upgrades the PHP version (a major upgrade considering it
would be 5 - 6) without notifying Customers isn't a very good hosting
company, and you really should change to a better one (Rackspace are good).
Even 1and1 don't do that and
Dotan Cohen wrote:
2008/5/14 Richard Heyes [EMAIL PROTECTED]:
Any host that upgrades the PHP version (a major upgrade considering it
would be 5 - 6) without notifying Customers isn't a very good hosting
company, and you really should change to a better one (Rackspace are good).
Even 1and1
2008/5/14 Richard Heyes [EMAIL PROTECTED]:
That really should be expected. You can't expect something to last forever
without tweaking it on occassion. And in the case of going from PHP 5 - 6,
the tweaking required may well be major, becxcause it's a major version
change.
Exactly. That's why
hi
i need to validate textarea of a html form using php
textarea name=comments cols=26 rows=3 id=comments?php
echo($comments);?/textarea
presently my php code to validate the text area is
if($comments == )
{
$error.=brPlease enter your comments;
}
with this code if a user hits the space bar
Quoting Sudhakar [EMAIL PROTECTED]:
hi
i need to validate textarea of a html form using php
textarea name=comments cols=26 rows=3 id=comments?php
echo($comments);?/textarea
presently my php code to validate the text area is
if($comments == )
{
$error.=brPlease enter your comments;
}
with
with this code if a user hits the space bar once or couple
of times as
a matter of fact there are no characters entered by the
user i do not
want this to happen, if a user simply hits the spacebar and
does not
type anything i should be able to display an alert message.
One
: terça-feira, 13 de maio de 2008 11:45
Para: Sudhakar
Cc: php-general@lists.php.net
Assunto: Re: [PHP] validating textarea using php
i need to validate textarea of a html form using php
textarea name=comments cols=26 rows=3 id=comments?php
echo($comments);?/textarea
You really should use
i need to validate textarea of a html form using php
textarea name=comments cols=26 rows=3 id=comments?php
echo($comments);?/textarea
You really should use htmlspecialchars before showing any user
stipulated HTML to help prevent security holes. Also you can use short
tags (popular...) to
On Tue, 13 May 2008, Sudhakar wrote:
hi
i need to validate textarea of a html form using php
textarea name=comments cols=26 rows=3 id=comments?php
echo($comments);?/textarea
presently my php code to validate the text area is
if($comments == )
{
$error.=brPlease enter your comments;
}
with
if(chop($comments) == ) { ... } //hope that helps.
Well, chop() is an alias of rtrim(), so it won't work here for, say,
trimming control characters at the end of the string like line feeds.
trim() is actually the best bit here.
Regards,
Usamah
--
PHP General Mailing List
On Tue, May 13, 2008 at 12:02 PM, Usamah al-Amin [EMAIL PROTECTED]
wrote:
if(chop($comments) == ) { ... } //hope that helps.
Well, chop() is an alias of rtrim(), so it won't work here for, say,
trimming control characters at the end of the string like line feeds.
trim() is actually the
Richard Heyes wrote:
Also you can use short
tags (popular...) to make the HTML more readable. Eg:
textarea name=comments cols=26 rows=3 id=comments
?=htmlspecialchars($comments)?
/textarea
It also makes the code less portable.
--
Jim Lucas
Some men are born to greatness, some
On Tue, 2008-05-13 at 19:02 +0300, Usamah al-Amin wrote:
if(chop($comments) == ) { ... } //hope that helps.
Well, chop() is an alias of rtrim(), so it won't work here for, say,
trimming control characters at the end of the string like line feeds.
trim() is actually the best bit here.
Sudhakar wrote:
i do not want
this to happen, if a user simply hits the spacebar and does not type
anything i should be able to display an alert message.
From usability point of view such check will, in many cases, generate
annoyance, and bring nothing.
If I do not want to enter anything,
Dan Joseph wrote:
On Tue, May 13, 2008 at 12:02 PM, Usamah al-Amin [EMAIL PROTECTED]
wrote:
if(chop($comments) == ) { ... } //hope that helps.
Well, chop() is an alias of rtrim(), so it won't work here for, say,
trimming control characters at the end of the string like line feeds.
trim()
Jim Lucas wrote:
Richard Heyes wrote:
Also you can use short tags (popular...) to make the HTML more
readable. Eg:
textarea name=comments cols=26 rows=3 id=comments
?=htmlspecialchars($comments)?
/textarea
It also makes the code less portable.
If that's even a concern. A lot of the
2008/5/14 Richard Heyes [EMAIL PROTECTED]:
It also makes the code less portable.
If that's even a concern. A lot of the time, it's not.
A lot of people think that, until their host upgrades php. Have you
seen how many things are being removed for php6?
Dotan Cohen
http://what-is-what.com
On Wed, 2008-05-14 at 00:32 +0300, Dotan Cohen wrote:
2008/5/14 Richard Heyes [EMAIL PROTECTED]:
It also makes the code less portable.
If that's even a concern. A lot of the time, it's not.
A lot of people think that, until their host upgrades php. Have you
seen how many things are
Dotan Cohen wrote:
2008/5/14 Richard Heyes [EMAIL PROTECTED]:
It also makes the code less portable.
If that's even a concern. A lot of the time, it's not.
A lot of people think that, until their host upgrades php. Have you
seen how many things are being removed for php6?
From the article
21 matches
Mail list logo