Ok i've got the form fields showing fine.  My form action is "." per
the examples in the documentation.  The form is submitting and tracing
through the view but i get a "view xxxx didn't return an
HttpResponse.object.

here's my view:

from forms import *
from django.shortcuts import get_object_or_404, render_to_response
from django.template import RequestContext
from django.template import Template, Context

def DoPayDetailForm (request):
    if request.method =='POST':
        form = PayDetailForm (request.POST)

        if form.is_valid():
            AccountNum=request.POST.get('AccountNum','')
            NameOnAcct=request.POST.get('NameOnAcct','')
            Email=request.POST.get('Email','')
            Phone=request.POST.get('phone','')
            NameOnCard=request.POST.get('NameOnCard','')
            Street1=request.POST.get('Street1','')
            Street2=request.POST.get('Street2','')
            City=request.POST.get('City','')
            State=request.POST.get('State','')
            ZipCode=request.POST.get('ZipCode','')

            return render_to_response("step2.html",{'AccountNum':
AccountNum, 'NameOnAcct': NameOnAcct,
            'Email': Email, 'Phone': Phone, 'NameOnCard': NameOnCard,
'Street1': Street1, 'Street2': Street2,
            'City': City, 'State': State, 'ZipCode': ZipCode, 'form':
form}, context_instance=RequestContext(request))
    else:

        form = PayDetailForm()
        return render_to_response('step1.html',{'form': form},
context_instance=RequestContext(request))


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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