Hi Pete, Kosuke: >>I made two pages. One is HTML for a FORM which sends information to another >>PHP >>page which then accesses a table in a database. The PHP page connects to the >>database and retrieves the data from the table. This code <?php echo >>$row['test_1']?> makes the data appear on the page. It works this far. >>However >>what I'd like to know is how I can transfer the information of $row['test_1'] >>to >>a different page and also record the data to another table.
Pete: >You want to access the data which you requested in Page1, returned in >Page2, and use it in a new Page3? Kosuke: Sorry, I'll try and explain myself better (English is my 2nd language). The user selects 2 items from drop down boxes on Page1 and clicks Submit. The program then uses these 2 items to access info from a Database (Table 1)through php page 2. This info is stored in a second table in the database (Table2) that stores info about the user AND simulataneously is displayed on Page2 for the user. Based on this clarification, does your advice below still apply? Pete: >Normally, you would pass something unique (Row ID, or whatever you are >using that is unique) to Page3, and have Page3 retrieve it again. >A second method would be to put the information of $row['test_1' ] into >a session variable, and access that. >Which you choose depends on what you are doing. If you are going to >access the data on many different pages, then session variables. >If you are only going to access the data on one or two pages, then >retrieve it again. >HOWEVER, your subject is "info transfer to database problem" - but you >don't seem to be transferring info TO a database, you seem to be >transferring data FROM a database - correct? Well I need to transfer info both FROM (table1) and TO (table2). Thanks for your help, Kosuke [Non-text portions of this message have been removed] Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
