LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[Webdev] PHP+Javascript request

[Webdev] PHP+Javascript request

Donncha O Caoimh donncha.ocaoimh at tradesignals.com
Tue Aug 20 10:02:52 IST 2002


Kate asked about this several months ago, and I posted some code and hints on 
how to work around this problem. AFAIR, you simply refer to the form elements 
by their names, including brackets, but put " or ' around them, ie:

val = "document.form.city[1]";

I think that works, there's an answer to this question on http://faqts.com/ 
where I got the original answer.

Donncha.

On Monday 19 August 2002 18:28, Dave Wilson wrote:
> > er, i understood you until you reached the above. Maybe its my lack of
> > PHP but why would a variable name _need_ to end with [] ?
> >
> > With most languages you parse the submitted form data and should come
> > out with either variables or an array / hash, which you then work with
> > and name whatever you like.
>
> IIRC, if the query string contains
>




More information about the Webdev mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell