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
<?php 
    $form = Loader::helper('form');
?>                                  
<form method="post" action="<?php echo $this->url('/home/googleMap')?>">
<?php 
print $form->text('myZipCode');
print $form->submit('myGoogleMap',t('submit'));
?>
</form>


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);


But I never succeed to retreive myZipCode :-/

Thanks to all
Best Regards

Type: Discussion
Status: Archived
rubbik
View Replies:
Korvin replied on at Permalink Reply
Korvin
That looks good, make sure you are outputting that in a way that you can read. Those echo's will most likely be thrown somewhere that won't be rendered how you expect them to, and viewing source would remove the post data.

Best wishes,
Korvin
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.