October 23, 200817 yr Newbies Hi How would I go about sending data inputted in a form to two independate tables?
October 23, 200817 yr A typical "form" would have a "submit" button. Does yours? If so, this could be easily scripted.
October 24, 200817 yr From a data design perspective, the data should not need to go to two different tables. The whole idea behind relational databases is to remove duplication of data...
October 24, 200817 yr The question can be interpreted in so many ways. Basically, any layout with a portal is a "form" that "sends" user input to two independent tables.
October 24, 200817 yr Setting aside questions of whether it's a good idea to do this, and with only a vague idea of your database structure... attach a script like this to your button: Set Variable( $name ; name field ) Set Variable( $city ; city field ) Go to layout( "table A" ) Set Field( nameA; $name ) Set Field( cityA; $city ) Go to layout( "table B" ) Set Field( nameB; $name ) Set Field( cityB; $city ) Go to layout( original layout )
Create an account or sign in to comment