If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Unanswered: help with passing variables from forms to php scripts!!!

help with passing variables from forms to php scripts!!!

Help!

I am currently in a fix.
The situation is this
1. Page 1 displays a 'BOOKS' table with X numbers of records. Users can select any number of records to edit.
2. When the user 'submits' in page 1, page2.php will display the selected records for him to edit them.

My problem is this. When using text box, i set NAME in <INPUT TYPE= NAME= VALUE=...> as "SELECTEDRECORDS[]" to pass to page 2. But when page 2 brings up, it doesn't reflect SELECTEDRECORDS[] to perform my remaining tasks. Why is this so? Is my script wrong? Page 2 shows up but only with the HEADING (NAME,BOOKS ID) and no selected records from page 1. Please help!

Page 1 script (SeqNum below is the field "sequence number" in the BOOKS table)

Are you checking the value of count on page 2? What does it come up with? You may also want to check if register_globals is on if you're going to try and access $SELECTEDRECORDS like that instead of using $_POST['SELECTEDRECORDS'] .

Hope this helps.

-b

(I'm only available at the email address provided in my profile on weekdays, if you have questions or advice, during off hours use AIM). Also any views I provide here or on my website are mine and not representative of any views of my work, family, friends and sometimes even myself.