How do I render two different html pages passing different results

Viewed 17

I make a POST call which launch a mysql query. The results has 2 values, the first must be rendered to the 'account' page, the second to the 'layout' page. I can't merge the two renders in order to send both values to the appropriate page. (can be the same with 2 generic variables instead of query results, the idea is the same). Any suggestions?

here are the 2 renders to be merged.

res.render('account', {TodayTotal: result[0]});

res.render('layout', {Username:result[1]});

0 Answers
Related