Posts by Vinnicius Pereira • 15 points
5 posts
-
0
votes1
answer1379
viewsQ: 'Can’t set headers after they are sent. ' Express.js
I’m trying to send the variable 'name' to the client-side, but it’s only working when I run a respons.end() when I use two, returns this error: > 'Can't set headers after they are sent.' Server…
-
-1
votes2
answers691
viewsA: Select without refresh page
You can not change the link, to use ajax, Voce have to change the information of the static page! if(cidade1){ $('informacao1').val('suainformacao'); }else if(cidade2){ {...} } I hope you…
-
-1
votes1
answer109
viewsQ: Nodejs returns: Illegal Arguments: number
const bodyParser = require('body-parser'); const bcrypt = require('bcryptjs'); //Bring in User Model let User = require('../models/user'); var urlencodedParser = bodyParser.urlencoded({extended:…
-
1
votes1
answer229
viewsQ: How to set a value for a span with React
I was trying to do that when the users pressed the button of Ubmit, it checked what the user entered, and if it was not valid it sent an error message through the span.Note:I cut the code to make it…
-
0
votes1
answer229
viewsQ: mysqli_insert_id() is returning 0 when used inside an insert
Every time I try to catch the id of that first INSERT, for mysqli_insert_id(), he returns 0 in the second Insert and returns the correct number in the header below, which can be?…