External Form, pass data to the block in another page, how to handle that
Permalink Browser Info Environment
Hello all, this Package is great and work pretty good, but I do want to go further
my goal is to create a form calling this block in order to pass a DATA (zipcode)
Simple example, I have a page googlemap, wating for a zipcode in order to show me the map => it's a concrete block (i used the package from concrete : premium_google_map and change the JS in order to work with the zip code) => this is ok :-)
So my issue,
The form will be on the header in order to be use in all the pages.
here is the code
submitting this code bring me to the googleMap page but I do not really know how to get the POST data.
In fact on the controller of the block I tried different way:
But I never succeed to retreive myZipCode :-/
Thanks to all
Best Regards
my goal is to create a form calling this block in order to pass a DATA (zipcode)
Simple example, I have a page googlemap, wating for a zipcode in order to show me the map => it's a concrete block (i used the package from concrete : premium_google_map and change the JS in order to work with the zip code) => this is ok :-)
So my issue,
The form will be on the header in order to be use in all the pages.
here is the code
submitting this code bring me to the googleMap page but I do not really know how to get the POST data.
In fact on the controller of the block I tried different way:
function view(){ echo '1st = '.$this->myZipCode; echo '2nd = '.$_POST['myZipCode']; echo '3rd ='.$this->post('myZipCode'); $this->set('bID', $this->bID); $this->set('title', $this->title); $this->set('api_key', $this->api_key); $this->set('kml_fID', $this->kml_fID); $this->set('kml_link', $this->kml_link); $this->set('w', $this->w); $this->set('kml_file_path', $this->getFileURL() ); $this->set('map_type_constant', $this->getMapTypeConstant() ); $this->set('show_earth', $this->show_earth); $this->set('load_earth', $this->load_earth); $this->set('latitude', $this->latitude);
Viewing 15 lines of 25 lines. View entire code block.
But I never succeed to retreive myZipCode :-/
Thanks to all
Best Regards
Type: | Discussion |
---|---|
Status: | Archived |
Best wishes,
Korvin