Skip to content

Instantly share code, notes, and snippets.

@Richie97
Created January 30, 2012 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Richie97/1707259 to your computer and use it in GitHub Desktop.
Save Richie97/1707259 to your computer and use it in GitHub Desktop.
Post Stuff
@app.route('/locations/add', methods=['POST'])
def add_loc():
db.execute('insert into locations(name, blurb, phone_number, address, url) values(?,?,?,?,?)', [request.form['name'], request.form['blurb'], request.form['phone'], request.form['address'], request.form['url']])
db.commit()
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment