473,372 Members | 1,191 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

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 1766
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
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
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
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
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
by: TomislaW | last post by:
How to get Lenght of DataSource in HTML of Repeater Like: <%# DataBinder.Eval(Container.Lenght) %> ???
13
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
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
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
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.