Click to See Complete Forum and Search --> : Passing parameter


khuant
07-08-2003, 01:13 PM
Can I pass an array as parameter to a html page using javascript? If yes, how?

Khalid Ali
07-08-2003, 01:31 PM
few possibilities.
1. If you are trying to pass an array to another function using URL then no you can not pass objects to another page via URL

2. If you are passing array to another page which is opened in the child window,yes in that case an object can be passed to child windows document.

3. And if you were referring to pass an array to another secion/function in the same document then yes you can do that as well..

khuant
07-08-2003, 01:54 PM
Hi

Thanks for the reply, what I want to do is this:

I have a table of data and one column with checkboxes for each row. The user can check the rows they want using the checkboxes, then press the submit button which calls another .php/html page along with the checked records. So my thought was store the values of the rows in an array and pass it as parameter to another page where more information will be collected from the user and send an email to admin.

How do I do this?

Khalid Ali
07-08-2003, 01:58 PM
I am sure PHP has some sort of way to store values in objects,you can get the values from the form of first page in php and create an array object on server side and the dynamically update the next page using php from the stored array values..

khuant
07-09-2003, 11:08 PM
Thanks, I got it working.