Hi all!
I have a littel table, and i wanna generate a html Form from it.. it works
at the backend I process it with php.
I generate it like this.

                    form=new FormPanel();

                    form.setAction(GWT.getHostPageBaseURL()

+"time_records_backend/sendTimeRecords/");

                    form.setEncoding(FormPanel.ENCODING_URLENCODED);
                    form.setMethod(FormPanel.METHOD_POST);
                    FlowPanel hpnl= new FlowPanel();
                    form.setWidget(hpnl);


                   //Adds the hidden variables to  the panel called hpnl;

                    for(int i=0;i<timeRecordTable.getHidden().size();i++)
                    {
                        for(int
j=0;j<timeRecordTable.getHidden().get(i).size();j++){

hpnl.add(timeRecordTable.getHidden().get(i).get(j));
                        }
                    }

                    RootPanel.get("frm").add(form);
                    form.addFormHandler(new FormHandler(){

                        public void onSubmit(FormSubmitEvent event) {
                        }

                        public void onSubmitComplete(
                                FormSubmitCompleteEvent event) {

                               //if the form has sended it is removed from
the root panel
                                form.removeFromParent();

                        }});

                    form.submit();

If i print the hpnl it looks like this:
<DIV><INPUT type=hidden value="2008-12-20 10:00:00"
Name="u[563139][from_date]"><INPUT type=hidden value="2008-12-20 17:00:00"
Name="u[563139][to_date]"><INPUT type=hidden value=120
Name="u[563139][break]"><INPUT type=hidden value=63
Name="u[563139][orders_has_assignment_id]"><INPUT type=hidden value=2
Name="u[563139][is_on_duty]"><INPUT type=hidden value="Performancetest
DataMartServer gp655sadd sa das" Name="u[563139][activity]"></DIV>

If I send it from fox the php got it, bit under ie, the php got nothing at
the $_POST.
What could go wrong?

tnx




-- 
Best Regards
Tóth Imre

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to