This topic is locked

Add Record Form on view on another table

6/11/2010 6:21:01 PM
PHPRunner General questions
M
mpatten author

Hey Everyone!
I'm trying to figure out how exactly to go about adding a form for a table in my database on a view record for another table.
For example I have a Register link that shows a hidden DIV on the view page of table 1. From there I want to have the new form appear in the div that would add a record to table2. The ID for the record that I am viewing for table1 equals CID on the other table.
Would it just just need to be coded as {$fieldname_editcontrol} in the visual editor and add the save button. Then make the CID on table2 equal the ID on table one of the record we are viewing since the two databases are joined? Or am I missing a needed event of some sort?
Thanks for direction!