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

  • SEARCH
  • Home
  • 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 8941187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:14:36+00:00 2026-06-15T11:14:36+00:00

File add.tcp <?php echo $this->Form->input(‘Issue.book_id’,array(‘label’=>false,’class’=>”,’type’=>’text’,’div’=>false,’value’=>$book_id)); ?> IssuesController.php function add() { if($this->request->data) { $data =

  • 0

File add.tcp

<?php echo $this->Form->input('Issue.book_id',array('label'=>false,'class'=>'','type'=>'text','div'=>false,'value'=>$book_id)); ?>
IssuesController.php
function add()
{
if($this->request->data)
{
$data = $this->Issue->find('first', array('conditions' => array('Issue.book_id' => $book_id)));
$this->set('data',$data);
}

File return.ctp:

<?php echo $this->Form->create('issue',array ('action'=>'add')); ?>
<div class="rows">
    <div class="cols col3">
    BOOK ID
    </div>
    <div class="cols col3">
    <?php echo $this->Form->input('Issue.book_id',array('label'=>false,'div'=>false,'error'=>false,'class'=>'c','type'=>'text','size'=>20)); ?>
    </div>
</div>
<br />
<?php echo $this->Form->submit('RETURN',array('class'=>'but')); ?>
<?php echo $this->Form->end(); ?>
<?php ?>

How can I get book_id value in controller.. Actually what I am passing value from return and I am getting that value in add.ctp but am not getting that issues in controller.

  • 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-06-15T11:14:38+00:00Added an answer on June 15, 2026 at 11:14 am

    Create a variable in controller

     $a=$this->request->data('Issue.book_id');
     then use $this->set('bookid',$a);
    

    Then you can use this in view

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

Sidebar

Related Questions

I have this file containing following text. 200.200.200.253 80/tcp:filtered:http 443/tcp:filtered:https 200.200.200.254 80/tcp:filtered:http 443/tcp:filtered:https web.example.com
im making file transfer (Server-Client) TCP i've already looked for same questions like this
i want to add file(photo) to fileupload control in the c#(code behind) thanks
Im using a .xib file to add two buttons above my table view that
Dynamic Query is a single C# file you add to your project. Anyone know
I am writing some code to add file attachments into an application I am
Is it possible to check in a file or add a file to an
I need to change my web.config file and add the MaxReceivedMessageSize property in my
Dynamically I want to edit/update hosts(etc/hosts) file to add domain. To edit hosts(etc/hosts) file
I have a page where the user can dynamically add file upload boxes. Adding

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.