Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form Stuff #33

Open
martinbagshaw opened this issue Dec 21, 2018 · 0 comments
Open

Form Stuff #33

martinbagshaw opened this issue Dec 21, 2018 · 0 comments

Comments

@martinbagshaw
Copy link

martinbagshaw commented Dec 21, 2018

  • Some validation would be cool, and a relatively quick win would be to add the pattern attribute. More on this here
  • You should match up the label to the input field in the form with the 'for' attribute:
<label for="name">Name</label>
<input id="name" type="text" name="name" placeholder="Tell us your fullname"/>
  • Stuff seems to be getting inserted into both databases, it's just the page isn't forwarding to a success page when it is submitted. You could use a callback to break out of the function when it is done. Here, we set cb(null) to return back to the router handler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant