473,503 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1774
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3454
by: Kevin Auch | last post by:
Hi all, I have a problem (a simple but incredible problem !). On a form, I have a Select element which is mulitple. I tried to get the number of options of this Select but it always return...
12
7274
by: Pudlik, Szymon | last post by:
Hi, I've written some code: function onSubmit(form){ for (var i = 0; i < form.elements.lenght; i++){ if (form.elements.disabled == 1) form.elements.disabled = 0; }
0
5474
by: Jean-Michel POURE | last post by:
Dear friends, I studying the possibility to port Compiere CRM from Oracle to PostgreSQL. As Compiere evolves nearly everyday in CVS, I would like to run the Oracle code without (too much)...
1
2285
by: svet | last post by:
Hello, I need to import data into integer field in Access but would like to trim the lenght of the field to 4 char. long instead of the default six char. long. This is important, because on...
1
1308
by: TomislaW | last post by:
How to get Lenght of DataSource in HTML of Repeater Like: <%# DataBinder.Eval(Container.Lenght) %> ???
13
520
by: Protoman | last post by:
I'm getting an error: 10 C:\Dev-Cpp\Enigma.cpp no match for 'operator<' in 'i < (+cleartext)->std::basic_string<_CharT, _Traits, _Alloc>::end ()' Code: Enigma.hpp...
0
1161
by: Fareast Adam | last post by:
Hi all, anybody know how to create dynamic array random password (lenght and no of password)? The program request an user to insert no of password AND lenght of password to be generate. After that,...
2
2179
by: pastir | last post by:
I have to read input from the keyboard and save it as a string (but in C strings are acctually character arrays or something?) that I am going to manipulate later. That wouldn`t be a problem except...
4
3164
by: javaalien | last post by:
Could someone please help me how to count lenght string in a file? I have input file like this: 1039387845 35368535615253 695 .... Kindly pls assist me how to count the lenght. Thank you in...
0
7072
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4998
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.