#POST data not sending

7 messages · Page 1 of 1 (latest)

summer vortex
#

aha!

#

I was missing name in my input elements

#

I didn't realize that id is not sufficient as a key for the value. The proper way to send the data is to use the attribute name as a key:

<input type="text" required maxlength="200" id="first_name" name="first_name" value=""/>
not <input type="text" required maxlength="200" id="first_name" value=""/>

arctic bloom
#

You should use forms. That will help prevent this in the future

summer vortex
#

yeah, I plan to since they are so much easier. I wanted to try doing it manually for fun hehe

summer vortex
#

it's amazing how much work django forms do for us. writing everything by hand is a pain