devilincarnated Posted February 10, 2010 Share Posted February 10, 2010 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? Quote Link to comment https://forums.phpfreaks.com/topic/191609-cakephp-issue/ Share on other sites More sharing options...
jcombs_31 Posted February 13, 2010 Share Posted February 13, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/191609-cakephp-issue/#findComment-1011885 Share on other sites More sharing options...
devilincarnated Posted February 15, 2010 Author Share Posted February 15, 2010 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.... Quote Link to comment https://forums.phpfreaks.com/topic/191609-cakephp-issue/#findComment-1012449 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.