Jas,

I've run into the same kind of problem with the site I'm doing for work.  

My first solution was to use the query string to pass contents of an array
(array[0]&array[1]...) but I got to the point where I was passing too much
information and it wouldn't work.  Now I use hidden data in my form and I
dynamically name the fields in a loop.  Then in the next page I use the
get_post_vars and use substring so I can say if the first part of the var
name is my array name then I get the position from the next part of the var
name (array0, array1...) and use that position to put it in the new array.  

I definitely wouldn't assume it's the cleanest way to do it, but I didn't
want to use sessions (if they'd even work) and the query string had some
problems with confidential data anyway (the users can see it and we aren't
supposed to display data in certain situations).

If you'd like to go with this method and want some pointers let me know and
I'll send you some of my code.

Good luck!

-Natalie

> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, February 25, 2002 1:01 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: [PHP-DB] Passing contents of array on as variables...
> 
> Let's see what your code looks like now and where it is returning the 
> word "array".  That might help determine where the problem lies now.
> 
> MB
> 
> jas <[EMAIL PROTECTED]> said:
> 
> > Ok to this point I have been able to query a database table, display the
> > results in tables and within a form.  As of yet I have been able to
> insert
> > the contents of the db query into an array for further processing.
> However,
> > when I try to pass the contents of that array on to another page to
> delete
> > selected records from the db it only displays the word "array".  Not
> quite
> > sure where I need to go from here... Any insight would be a great help.
> > Thanks in advance,
> > Jas
> > 
> > 
> > 
> > -- 
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> > 
> 
> 
> 
> -- 
> 
> 
> 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to