Guest User

Untitled

a guest
Aug 21st, 2013
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. Customer Model (customer)
  2. --------------
  3. id
  4. first_name
  5. last_name
  6.  
  7. Customer Data:
  8. 1, John Smith
  9.  
  10. =======
  11.  
  12. Customer Phone Model (customer_phone)
  13. --------------
  14. customer_id
  15. phone_field_id
  16. phone
  17.  
  18. Customer Phone Data:
  19. 1, 1, 2225553434
  20. 1, 3, 2225557656
  21.  
  22. ======
  23.  
  24.  
  25. Phone Field (phone_field)
  26. --------------
  27. id
  28. name
  29.  
  30. Phone Field Data:
  31. 1 => Home
  32. 2 => Business
  33. 3 => Mobile
  34. 4 => Fax
  35.  
  36.  
  37.  
  38. //////
  39.  
  40.  
  41. I am trying to create a text field for Phone Field and when posted get the id of the field so I can save it to Customer Phone Model linking the phone type to the phone and linking the phone to the customer.
Advertisement
Add Comment
Please, Sign In to add comment