469,086 Members | 1,216 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,086 developers. It's quick & easy.

what does it mean fieldRequired.lenght in php 4.1 ?

What does it mean "fieldRequired.lenght" in php 4.1 ?
I know "fieldRequired->lenght" but don't know "fieldRequired.lenght"
Please help to understand.
Thank you!

Oct 29 '06 #1
9 1507
Andrey Koptyaev wrote:
What does it mean "fieldRequired.lenght" in php 4.1 ?
I know "fieldRequired->lenght" but don't know "fieldRequired.lenght"
Please help to understand.
Thank you!
'.' is the string concatenation operator, but neither 'fieldRequired'
nor 'lenght' appear to be variables.

Can you give us some context?

Colin
Oct 29 '06 #2
Andrey Koptyaev wrote:
What does it mean "fieldRequired.lenght" in php 4.1 ?
I know "fieldRequired->lenght" but don't know "fieldRequired.lenght"
Please help to understand.
Thank you!
Andrey,

By itself this doesn't make much sense. Can you give us a reference
where you saw it?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Oct 29 '06 #3

Colin Fine wrote:
Andrey Koptyaev wrote:
What does it mean "fieldRequired.lenght" in php 4.1 ?
I know "fieldRequired->lenght" but don't know "fieldRequired.lenght"
Please help to understand.
Thank you!

'.' is the string concatenation operator, but neither 'fieldRequired'
nor 'lenght' appear to be variables.

Can you give us some context?

Colin
here:

function formCheck(formobj){
// Enter name of mandatory fields
var fieldRequired = Array("title", "category", "description",
"regnow_id", "vid");
// Enter field description to appear in the dialog box
var fieldDescription = Array("<?=$GLOBALS['_TITLE']?>",
"<?=$GLOBALS['_DESC']?>", "<?=$GLOBALS['_CATEG']?>",
"<?=$GLOBALS['_RNID']?>", "<?=$GLOBALS['_VENDOR']?>");
// dialog message
var alertMsg = "<?=$GLOBALS['_ERR11']?>\n";

var l_Msg = alertMsg.length;

for (var i = 0; i < fieldRequired.length; i++){
var obj = formobj.elements[fieldRequired[i]];

Oct 30 '06 #4
"Andrey Koptyaev" <ko******@gmail.comwrote in message
news:11**********************@e64g2000cwd.googlegr oups.com...
>
Colin Fine wrote:
>Andrey Koptyaev wrote:
What does it mean "fieldRequired.lenght" in php 4.1 ?
I know "fieldRequired->lenght" but don't know "fieldRequired.lenght"
Please help to understand.
Thank you!

'.' is the string concatenation operator, but neither 'fieldRequired'
nor 'lenght' appear to be variables.

Can you give us some context?

Colin

here:

function formCheck(formobj){
// Enter name of mandatory fields
var fieldRequired = Array("title", "category", "description",
"regnow_id", "vid");
// Enter field description to appear in the dialog box
var fieldDescription = Array("<?=$GLOBALS['_TITLE']?>",
"<?=$GLOBALS['_DESC']?>", "<?=$GLOBALS['_CATEG']?>",
"<?=$GLOBALS['_RNID']?>", "<?=$GLOBALS['_VENDOR']?>");
// dialog message
var alertMsg = "<?=$GLOBALS['_ERR11']?>\n";

var l_Msg = alertMsg.length;

for (var i = 0; i < fieldRequired.length; i++){
var obj = formobj.elements[fieldRequired[i]];
That's javascript mixed with some php. In your example code everything
between the <? ?tags is php, anything outside them is javascript. In this
case fieldRequired.length is a javascript command. To be precide, it refers
to a string object 'fieldRequired' and it's class member 'length'.

Ask in a javascript group.
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti päivittyvä nettisarjis
sp**@outolempi.net | rot13(xv***@bhgbyrzcv.arg)
Oct 30 '06 #5
Andrey Koptyaev wrote:
here:

function formCheck(formobj){
// Enter name of mandatory fields
var fieldRequired = Array("title", "category", "description",
"regnow_id", "vid");
// Enter field description to appear in the dialog box
No PHP so far
var fieldDescription = Array("<?=$GLOBALS['_TITLE']?>",
"<?=$GLOBALS['_DESC']?>", "<?=$GLOBALS['_CATEG']?>",
"<?=$GLOBALS['_RNID']?>", "<?=$GLOBALS['_VENDOR']?>");
// dialog message
var alertMsg = "<?=$GLOBALS['_ERR11']?>\n";
Only stuff between <? and ?(6 things) is, probably (*), PHP.
All the rest isn't; and also there is no more PHP below.
var l_Msg = alertMsg.length;

for (var i = 0; i < fieldRequired.length; i++){
var obj = formobj.elements[fieldRequired[i]];
I suggest you ask in a newsgroup that deals with this language, whatever
it is :)
(*) It is PHP if your server is configured with short_open_tags.
Rather than rely on a specific server configuration, it's best to code
that as

<?php echo $variable; ?>

which will work on every server with PHP installed (and configured to
'run' on files with the extension this snippet is in).

--
I (almost) never check the dodgeit address.
If you *really* need to mail me, use the address in the Reply-To
header with a message in *plain* *text* *without* *attachments*.
Oct 30 '06 #6

Kimmo Laine wrote:
"Andrey Koptyaev" <ko******@gmail.comwrote in message
news:11**********************@e64g2000cwd.googlegr oups.com...

Colin Fine wrote:
Andrey Koptyaev wrote:
What does it mean "fieldRequired.lenght" in php 4.1 ?
I know "fieldRequired->lenght" but don't know "fieldRequired.lenght"
Please help to understand.
Thank you!


'.' is the string concatenation operator, but neither 'fieldRequired'
nor 'lenght' appear to be variables.

Can you give us some context?

Colin
here:

function formCheck(formobj){
// Enter name of mandatory fields
var fieldRequired = Array("title", "category", "description",
"regnow_id", "vid");
// Enter field description to appear in the dialog box
var fieldDescription = Array("<?=$GLOBALS['_TITLE']?>",
"<?=$GLOBALS['_DESC']?>", "<?=$GLOBALS['_CATEG']?>",
"<?=$GLOBALS['_RNID']?>", "<?=$GLOBALS['_VENDOR']?>");
// dialog message
var alertMsg = "<?=$GLOBALS['_ERR11']?>\n";

var l_Msg = alertMsg.length;

for (var i = 0; i < fieldRequired.length; i++){
var obj = formobj.elements[fieldRequired[i]];

That's javascript mixed with some php. In your example code everything
between the <? ?tags is php, anything outside them is javascript. In this
case fieldRequired.length is a javascript command. To be precide, it refers
to a string object 'fieldRequired' and it's class member 'length'.

Ask in a javascript group.
ok
thank you
I am going to teach some java :-)

Oct 30 '06 #7

Pedro Graca wrote:
Andrey Koptyaev wrote:
here:

function formCheck(formobj){
// Enter name of mandatory fields
var fieldRequired = Array("title", "category", "description",
"regnow_id", "vid");
// Enter field description to appear in the dialog box

No PHP so far
var fieldDescription = Array("<?=$GLOBALS['_TITLE']?>",
"<?=$GLOBALS['_DESC']?>", "<?=$GLOBALS['_CATEG']?>",
"<?=$GLOBALS['_RNID']?>", "<?=$GLOBALS['_VENDOR']?>");
// dialog message
var alertMsg = "<?=$GLOBALS['_ERR11']?>\n";

Only stuff between <? and ?(6 things) is, probably (*), PHP.
All the rest isn't; and also there is no more PHP below.
var l_Msg = alertMsg.length;

for (var i = 0; i < fieldRequired.length; i++){
var obj = formobj.elements[fieldRequired[i]];

I suggest you ask in a newsgroup that deals with this language, whatever
it is :)
(*) It is PHP if your server is configured with short_open_tags.
Rather than rely on a specific server configuration, it's best to code
that as

<?php echo $variable; ?>

which will work on every server with PHP installed (and configured to
'run' on files with the extension this snippet is in).
ok
thank you
I understand - this is javascript with little bit php

Oct 30 '06 #8
"Andrey Koptyaev" <ko******@gmail.comwrote in message
news:11*********************@b28g2000cwb.googlegro ups.com...
>
Kimmo Laine wrote:
>"Andrey Koptyaev" <ko******@gmail.comwrote in message
news:11**********************@e64g2000cwd.googleg roups.com...
>
Colin Fine wrote:
Andrey Koptyaev wrote:
What does it mean "fieldRequired.lenght" in php 4.1 ?
I know "fieldRequired->lenght" but don't know "fieldRequired.lenght"
Please help to understand.
Thank you!
'.' is the string concatenation operator, but neither 'fieldRequired'
nor 'lenght' appear to be variables.

Can you give us some context?

Colin

here:

function formCheck(formobj){
// Enter name of mandatory fields
var fieldRequired = Array("title", "category", "description",
"regnow_id", "vid");
// Enter field description to appear in the dialog box
var fieldDescription = Array("<?=$GLOBALS['_TITLE']?>",
"<?=$GLOBALS['_DESC']?>", "<?=$GLOBALS['_CATEG']?>",
"<?=$GLOBALS['_RNID']?>", "<?=$GLOBALS['_VENDOR']?>");
// dialog message
var alertMsg = "<?=$GLOBALS['_ERR11']?>\n";

var l_Msg = alertMsg.length;

for (var i = 0; i < fieldRequired.length; i++){
var obj = formobj.elements[fieldRequired[i]];

That's javascript mixed with some php. In your example code everything
between the <? ?tags is php, anything outside them is javascript. In
this
case fieldRequired.length is a javascript command. To be precide, it
refers
to a string object 'fieldRequired' and it's class member 'length'.

Ask in a javascript group.

ok
thank you
I am going to teach some java :-)
First of all it's JavaScript, not Java, those two are very much different
languages, and secondly I do wish you first LEARN some javascript before you
start TEACHING it... ;)
--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti päivittyvä nettisarjis
sp**@outolempi.net | rot13(xv***@bhgbyrzcv.arg)
Oct 31 '06 #9
ok
thank you
I am going to teach some java :-)

First of all it's JavaScript, not Java, those two are very much different
languages, and secondly I do wish you first LEARN some javascript before you
start TEACHING it... ;)
yes, I understand you
my english very bad
then I going to learn some javascript and late I'll think about
teaching :-)

Oct 31 '06 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Kevin Auch | last post: by
12 posts views Thread by Pudlik, Szymon | last post: by
1 post views Thread by svet | last post: by
1 post views Thread by TomislaW | last post: by
13 posts views Thread by Protoman | last post: by
2 posts views Thread by pastir | last post: by
4 posts views Thread by javaalien | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by kglaser89 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.