PythonistL wrote:
> Can anybody explain WHY the value from GET part
> (command on line 15 such as
> Refferer1= request.META['HTTP_REFERER']
> ) is not saved to POST?
request.POST contains only the variables POSTed by the user. You'll
have to make sure that the referer variable is part of your form if you
want to use it after form submission.
You could, for example, change your last line to
return render_to_response('board/LoginForm',
{'form':form, 'ref':request.META['HTTP_REFERER']})
and render {{ ref }} as the value of a hidden input field in your login
form. Thus request.POST['ref'] will contain the referer.
Andreas