Apologies, apologies, Niphlod. Went to get the controller and saw might
mistake. Classic PEBKAC situation. Thanks for your help.
On Saturday, September 22, 2012 9:45:05 AM UTC-4, Niphlod wrote:
>
> Can you please post the complete controller ? I still don't understand
> when you say "the view is
Can you please post the complete controller ? I still don't understand when
you say "the view is ok, but request.post_vars is empty". If you built a
view in web2py, and it's tied to that controller, it's impossible that the
view can "see" something that the controller "isn't seeing".
On Satur
Yes, the form was generated outsite web2py and posted to the web2py
controller "submit_site". My frustration is that in the controller,
response.post_vars.submit_ip (and all form fields) have a value of None,
but in the VIEW, they show correctly. WHY!?
It can't be blamed out the external form
I didn't get the problem. Wasn't the form generated "outside" web2py and
you wanted web2py only to catch the submitted part ?
request.post_vars include every value (hidden or not) that the controller
receives. if in response.post_vars there's no "submit_ip", than it's
probably your "outside" fo
One more question - here's how I redid the controller because I need these
values for hidden fields in the web2py form.
def submit_site():
site = request.post_vars.submit_url
ip = request.post_vars.submit_ip
However, that only results in values of None. Why can't I use
request.post_vars
Hah! There they are. I guess I need to do some more reading on the request
attributes. Thanks Niphlod.
On Thursday, September 20, 2012 8:03:20 PM UTC-4, Niphlod wrote:
>
> have you tried simply printing request.post_vars in submit_site() and see
> what it does contain?
>
>
--
have you tried simply printing request.post_vars in submit_site() and see
what it does contain?
--
7 matches
Mail list logo