Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #10062

Re: How can i get value of text area?

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Content-Type text/plain; charset="UTF-8"
Message-ID <5479816.A5F48n2xs2@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <php@PointedEars.de>
Organization PointedEars Software (PES)
Date Wed, 10 Jul 2013 22:25:42 +0200
User-Agent KNode/4.10.4
Content-Transfer-Encoding 8Bit
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
Subject Re: How can i get value of text area?
Newsgroups comp.lang.php
References <d4d1b24a-9d60-4d25-8949-5fbf65d1fb27@googlegroups.com>
MIME-Version 1.0
Lines 67
NNTP-Posting-Date 10 Jul 2013 22:25:43 CEST
NNTP-Posting-Host 27429aca.newsspool3.arcor-online.net
X-Trace DXC=W>1K3IA\@aePKPPVf;4hUjMcF=Q^Z^V3h4Fo<]lROoRa8kF<OcfhCOk?F<P;FJ26_bDZm8W4\YJNlb@mF9jNikde7a5\<`>]gfn`hC1RM<9=3o
X-Complaints-To usenet-abuse@arcor.de
Xref csiph.com comp.lang.php:10062

Show key headers only | View raw


sanjayrathod273@gmail.com wrote:

> i have two files
> 1)index.php
> and
> 2)code.js

No, you have copied them from <http://web.guru99.com/data-types-variables-and-operators/> without telling us (or them).

You cannot simply copy the client-side code from a PHP-powered Web site 
(they are using WordPress, but the editor makes it clear already) and expect 
it to work the same at your box.  Also, you MUST NOT do that (except perhaps 
for non-public use; check your local Copyright laws – IANAL).

But any Web site that makes claims like

| PHP is a loosely typed language; it does not have explicit defined data
| types.
| 
| PHP determines the data types by analyzing the attributes of data
| supplied.
| 
| PHP implicitly supports the following data types […]

is not to be trusted anyway.

PHP is _not_ a “loosely typed” language (that term is “loosely *defined*” 
itself; avoid it).  It is a language with dynamic type-checking (at runtime, 
as opposed to static type-checking at compile-time).

That means it *has* “explicit defined data types”, but that symbols 
(variables, array member, classes, properties) do not have a type as in “is 
declared as” or “enforce” (at *compile time*), and that *values* have a type 
instead.  The type of the symbol is defined by the value it stores or refers 
to, at *runtime*.  In some cases, as with type hinting and setters/getters, 
more strict type-checking or implicit type conversion, can be enforced on 
function parameters and properties.  As such, PHP without type hinting can 
be called a “weakly typed” language according to Liskov and Zilles, and 
Jackson (referred in [1]).

Data types are supported in PHP *explicitly*.  Each PHP value has a type in 
the Zend2 PHP engine:

<http://www.php.net/manual/en/internals2.variables.intro.php> etc.

So the gettype() function does _not_ “[analyze] the attributes of data 
supplied”, it just reads the “type” member of the zval and maps it to a 
human-readable string value.

As with other languages with dynamic type-checking (such as ECMAScript 
implementations like JavaScript, for a prominent example), implicit type 
*conversion* (in PHP also called “type juggling”) is performed with certain 
operators:
 
<http://www.php.net/manual/en/language.types.php>

You are better off reading <http://php.net/manual>, asking specific 
questions in this newsgroup, or taking a PHP class at Zend.com than reading 
this tutorial.  And you will learn more about PHP by setting it up on your 
computer than by using a Web editor.


PointedEars
___________
[1] <http://en.wikipedia.org/wiki/Strong_and_weak_typing>
-- 
When all you know is jQuery, every problem looks $(olvable).

Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

How can i get value of text area? sanjayrathod273@gmail.com - 2013-07-09 04:55 -0700
  Re: How can i get value of text area? Jerry Stuckle <jstucklex@attglobal.net> - 2013-07-09 08:07 -0400
  Re: How can i get value of text area? bill <william@TechServSys.com> - 2013-07-09 10:12 -0400
  Re: How can i get value of text area? Denis McMahon <denismfmcmahon@gmail.com> - 2013-07-09 15:44 +0000
  Re: How can i get value of text area? Christoph Michael Becker <cmbecker69@arcor.de> - 2013-07-10 02:02 +0200
  Re: How can i get value of text area? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-07-10 22:25 +0200

csiph-web