Gonzalo, I tried to use your approach which looks really simple, but I
can't seem to call the page via the $html->submit helper :(
If you can give me some code sample (i'm re-reading the API) on
sending hidden data via submit maybe it will all work.
- For example my controller sends back arrays of which one is very
important that I'm trying to get pdf'ed which is $nome_cercato  Now
how can I send that to another view file that is handling my pdf
generation to actually print it ?


Francky061, you are correct, the form is alwalys visible! Since the
nature of the form is to search and show database records, that are
changing, is it possible to use a nested form post that only sends the
currently found results before the end of the main form ?

I tried doing this before the form closing tag within th index.thtml
view.
<form action="<?php echo $html->url('/members/index_pdf/'); ?>"
method="post">
        </div>
        <?php echo $html->hidden('Member/id',$nome_cercato)?>
                  <div class="submit">
                  <?php echo $html->submit('PDF');?>
                  </div>
                </div>
                </form>
but i don't get the called page and instead the current pages view
just flashes without loosing its posted contents (which is also good
so the actual values don't disappear), but I can't see neither the
called page not even an error !

If i call the page manually it works and spits out the correct static
pdf file, missing the dynamic data.

regards,
.aniston


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to