Hello all,
Trying to get this working with my heroku app. I'm using ejs instead of jade and on the profile page I have this:
<form method="post"> <fieldset action="/profile" class="form-group"> <label for="favcolor">Favorite Color</label> <input type="text" class="form-control" id="favcolor" value="<%- user.customData.favoriteColor %>" placeholder="Enter your favorite color"> <small class="text-muted">We'll never share your color with anyone else.</small> </fieldset> <fieldset class="form-group"> <label for="birthday">Password</label> <input type="text" class="form-control" id="birthday" value="<%- user.customData.birthday %>" placeholder="Enter your birthday"> </fieldset> <button type="submit" class="btn btn-primary">Submit</button> </form>
But when I click on Submit it doesn't post anything. Should there be an action pointing to the api?
Thanks.
Hello all,
Trying to get this working with my heroku app. I'm using ejs instead of jade and on the profile page I have this:
<form method="post"> <fieldset action="/profile" class="form-group"> <label for="favcolor">Favorite Color</label> <input type="text" class="form-control" id="favcolor" value="<%- user.customData.favoriteColor %>" placeholder="Enter your favorite color"> <small class="text-muted">We'll never share your color with anyone else.</small> </fieldset> <fieldset class="form-group"> <label for="birthday">Password</label> <input type="text" class="form-control" id="birthday" value="<%- user.customData.birthday %>" placeholder="Enter your birthday"> </fieldset> <button type="submit" class="btn btn-primary">Submit</button> </form>But when I click on Submit it doesn't post anything. Should there be an action pointing to the api?
Thanks.