Former Arizona Cardinals quarterback Matt Leinart has agreed to a one-year contract with the Houston Texans.

Leinart will take a physical, sign the contract and join the team Monday. Agent Tom Condon confirmed the agreement in a phone interview with The Associated Press.

"It's been kind of crazy, a whirlwind, but I'm excited to be here," Leinart told KRIV-TV in Houston.

Leinart said he's looking forward to working with Texans coach Gary Kubiak, who has a reputation for developing quarterbacks.

"I am really excited to work with Gary," Leinart told KRIV. "His résumé with quarterbacks and what he's done with Matt [Schaub] is really intriguing. Matt is a great quarterback to learn from and I'm really looking forward to it."

Leinart's deal with the Texans was first reported by ESPN senior NFL analyst Chris Mortensen.

After his release Saturday, Leinart found little interest from the rest of the NFL's 31 teams, sources told Mortensen.

Leinart will become the Texans' third quarterback behind Schaub, the starter, and backup Dan Orlovsky, who will remain the No. 2 at least until Leinart has some command of Houston's offensive scheme, the sources said.

The Texans cut John David Booty, another former USC quarterback, when they trimmed their roster to the mandatory 53-man limit on Saturday, leaving Schaub and Orlovsky as their top two quarterbacks. Orlovsky threw two interceptions against the Buccaneers in the final preseason game but Kubiak otherwise described the Texans' backup as having a "strong" training camp.

Kubiak said he was excited to add Leinart to his stable of quarterbacks.

"You don't count on a player like that being available," Kubiak told KRIV. "We are very fortunate. Matt fits what we do."

Leinart will be working with some of the NFL's best receiving talent, including All-Pro Andre Johnson. Leinart, who was released Saturday, also had great receivers in Arizona, led by All-Pro Larry Fitzgerald.