On 5 Aug 2009, at 10:38 , StevenC wrote:
> Cheers!
>
> Would this work? Im so used ot PHP, i keep thinking in it.
>
>
> if request.metho == 'POST' &&  'Lived_Out_Uk' in request.POST:
>
> Would that work?
>
It wouldn't, because "&&" is not a python operator. The boolean  
operator in Python is "and", so `request.method == 'POST' and  
'Lived_Out_Uk' in request.POST` will ensure the request has been  
POSTed and there's a value for the key 'Lived_Out_Uk' in request.POST.

But really, you should use django's forms for that kind of things.

Also, please read the Python tutorial at least, it's not a big  
document and it'll help you a lot.

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

Reply via email to