Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6253855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:04:37+00:00 2026-05-24T14:04:37+00:00

I have a form which collects a name, password and email_address which are all

  • 0

I have a form which collects a name, password and email_address which are all part of the User model. The same form also collects car_make which is part of the Car model. I know I can collect these as

$form->input("User.name"); or $form->input("Car.make"); 

and they are available in the action which the form submits to as

$this->data["User"] or $this->data["Car"]

But at this point I just want to save the User data and redirect to an action in the car controller which has the value they put in $form->input(“Car.make”); available.

How do I go about doing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T14:04:38+00:00Added an answer on May 24, 2026 at 2:04 pm

    are you sure you want to redirect to the cars controller? Or you just want to save that Car.make information?

    If redirect, $this->redirect(array('controller'=>'cars','action'=>'some_action','make'=>$this->data['Car']['make']));

    If save: loadModel(‘Car’) if Car is not related to User in anyway. Then save the data using that Car model object. Just something like $this->User->Car->save($this->data);

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form which collects user info including name, location, url, email address
I have a user registration form in my Django application which collects additional data
i have one form which collect user information Name Age CV and then i
I have a form which collects basic user information. On the subsequent page it
I have inserted this form with multiple checkbox items which collects some values, What
I have a form that collects information, one piece of which is a phone
I have an online form which collects member(s) information and stores it into a
I have a form which collects a persons address. When they click submit I
I have an online form which collects consumer data and stores in a dedicated
I have a Model Category which has name:string categoryId:integer parent_id:integer the categoryId doesnt matter

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.