Jump to content

cakePHP issue


devilincarnated

Recommended Posts

i have created a dropdownlist of values in a view....now i want to do a rent projection based on the selected values in the drop down. the drop down has values startmonths, stopmonths......so if start months is set to june and stop months to aug i want a display say, jun jul aug.....so based on the value selected i want to call them in my new thtml view results file and display accordingly....i just want to know how to take those selected values from this dropdown?

 

can anyone help me out?

 

Link to comment
Share on other sites

When you say drop down are you referring to a select box in a form?  If you submit the form, they will be in the data array.  If you want to pass values to a view, you have to use $this->set('name', $value).  You could just pass the data array and parse as necessary.  And what version of cake are you using, thtml pages are deprecated.

Link to comment
Share on other sites

 

yes the select box of a form...

 

If you want to pass values to a view, you have to use $this->set('name', $value)

 

does that mean the selectbox value now has the value selected in name?

 

its a third party script...i have posted in it 2...here is the link....

http://www.phpfreaks.com/forums/index.php/topic,287522.0.html

 

here is a detailed explanation of my problem what i posted in the above link...if any doubts please revert back

 

cakePHP issue

 

i have created a dropdownlist of values in a view....now i want to do a rent projection based on the selected values in the drop down. the drop down has values startmonths,stopmonths......so based on the value selected i want to call them in my new thtml view results file and display accordingly....

 

can anyone help me out?

now the problem i face is since i have written an array for startmonths and stopmonths in a view file, i.e. .thtml file as requested by the client for rent projection for particular period and passed through js the values to the php function....it works fine now......but now he wants to change the appearance of the front end again....the problem is the arrays i created for start and stop months wont get received in any file.....how do i call them? they wont even print out the selected value of selectbox here....

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.