Hi,
If you are using Django framework,
request.POST.get('field_name') will give you the post value.
As to what to use to get the form in edit mode use,
editForm = UserProfileForm(instance=db.get(key))
To use in validation i.e postback,
postbackForm = UserProfileForm(data=request.POST)
I am using the app engine patch sample that uses django templates and
if you want to get values from a submitted form then you need to
create an instance of the form like this
class UserProfileForm(forms.Form):
wf_first_name = forms.CharField()
wf_last_name = forms.CharField()
Does there exists a way of accessing the submitted form fields without
creating an instance of the same like we do in non django based
project like self.request.get(fieldname)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
:-)
Can you set a default value?
first_name = self.request.get(first_name, default_value=)
--
Web Blue Screen of Death
http://pyoohtml.appspot.com/web-blue-screen-of-death
On Mar 22, 11:09 am, arnie parvez...@rediffmail.com wrote:
Will using value={{first_name}} inside the input tag cause
Will using value={{first_name}} inside the input tag cause any
problem when the same page is used for creating new entries instead of
editing as the whole html page is evaluated at the server before
rendering.
Thanks
Arnie
--~--~-~--~~~---~--~~
You received this