Hello Again,

Now i don't believe this to be a django-ccentric problem, but because
i'm running this as a django project, i thought i'd cover all my bases
and post here.  I have a page i'm doing a simple webmaster contact
form on, and i'm doing it the same way i have on other sites:

                                <form id="contact_form" 
action="/contact/email/" method="post">
                                <p>
                                <label for="recipient">Recipient:</label>
                                        <input type="text" id="recipient" 
value="{{info.email}}"
readonly="readonly" /><br />
                                <label for="efrom">From:</label>
                                        <input type="text" id="efrom" /><br />
                                <label for="subject">Subject: </label>
                                        <input type="text" id="subject" /><br />
                                <label for="message">Message:</label>
                                        <textarea id="message" rows="5" 
cols="5"></textarea><br />
                                <input type="submit" value="send" />
                                </p>
                                </form>

The url sends it to my view:

def contact_email(request):
  if request.method == 'POST':
    to=request.POST['recipient']
    efrom=request.POST['from']
    subject=request.POST['subject']
    message=request.POST['message']
    send_mail(subject, message, efrom, to, fail_silently=False)
  return render_to_response("contact_success.html")


Now when i hit the send button, i get a django error page stating that
my view isn't being passed any key values.  When i look down the error
page i see that there is no post data.  I'm a little unsure of why
there would be no post data in this instance.  Any input would be
really appreciated as i'm a little mystified
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to