stbazilio Posted January 12, 2014 Posted January 12, 2014 Hi. I am a Russian user and do not quite understand English (I use a translator). I need help in creating a form on a demo site Skyscraper Search. Good to see the template with html and php code.
kongondo Posted January 12, 2014 Posted January 12, 2014 (edited) ......Good to see the template with html and php code. Here you go http://modules.processwire.com/modules/skyscrapers-profile/ Welcome to ProcessWire stbazilio Edited January 12, 2014 by kongondo
stbazilio Posted January 13, 2014 Author Posted January 13, 2014 Here you go http://modules.processwire.com/modules/skyscrapers-profile/ Welcome to ProcessWire stbazilio Thank you So sorry, not quite understand how to install. I updowload all the files from the archive /site/ directory, after this site does not work. I can not find and run the installer.
stbazilio Posted January 13, 2014 Author Posted January 13, 2014 Understood, it was necessary to archive module folder in cms and install the new
kongondo Posted January 13, 2014 Posted January 13, 2014 Glad you got it sorted. Yes, "site/profile" modules are different from your "normal" modules and need to be installed as a fresh site install...(hope this makes sense to others - Monday blues!) 3
stbazilio Posted January 13, 2014 Author Posted January 13, 2014 Glad you got it sorted. Yes, "site/profile" modules are different from your "normal" modules and need to be installed as a fresh site install...(hope this makes sense to others - Monday blues!) Thank you
stbazilio Posted January 14, 2014 Author Posted January 14, 2014 Another question. How to duplicate the search box. Eg City field I put 2 times so that i can choose 2 options. The results are displayed only for one selected field.How to make so that you can choose Atlanta and Austin and get the result of two citieshttp://processwire.com/skyscrapers/
ryan Posted January 18, 2014 Posted January 18, 2014 For that I'd suggest using a multiple selection field rather than a single selection field. The simplest examples would be a <select multiple> or checkboxes. You can tell PHP to submit the result as an array by appending "[]" to the field name, i.e. <select multiple name='something[]'> <option value='1'>One</option> <option value='2'>Two</option> <option value='3'>Three</option> </select> From the PHP side, you can retrieve it like this: if(!empty($input->get->something)) { foreach($input->get->something as $value) { $value = (int) $value; // $value contains either: 1, 2, or 3 } }
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now