Node JS Tutorial for Beginners #29 - Query Strings

preview_player
Показать описание
----- COURSE LINKS:

---------------------------------------------------------------------------------------------
You can find more front-end development tutorials on CSS, HTML, JavaScript, jQuery, WordPress & more on the channel homepage...

========== JavaScript for Beginners Playlist ==========

============ CSS for Beginners Playlist =============

============== The Net Ninja =====================

================== Social Links ==================

Рекомендации по теме
Комментарии
Автор

form{width: 400px; max-width: 100%; padding: 20px; margin: 20px auto;}
input{display: block; margin: 10px 0; padding: 10px; width: 100%;}
input[type='submit']{width: auto;}

briantoon
Автор

Please, please, please don't stop making such videos. You are the best teacher in the world!!

Mona-g
Автор

Plain HTML form:


<form id="contact-form">
<label for="who">Who do you want to contact?</label>
<input type="text" name="who">
<label for="department">Which department?</label>
<input type="text" name="department">
<label for="email">Your email:</label>
<input type="email" name="email">
<input type="submit" value="submit">
</form>

pasizdobrekuce
Автор

<form id="contact-form>
<label for="who">Who do you want to contact?</label>
<input type="text" name="who" value="<%= queryString.person%>">
<br>
<label for="department">Which department?</label>
<input type="text" name="department" value="<%= queryString.dept%>">
<br>
<label for="email">Your email:</label>
<input type="email" name="email">
<br>
<input type="submit" value="submit">
</form>

rainmansyc
Автор

To be honest, I am a starter of learning Node Js and I really do not understand the Node JS stuffs if I do not watch your videos. The way you taught in the videos are really simple to understand for the starter and it is really amazing. Thank you for making these videos and hope not to stop making as you are really good at explaining.

khinethein
Автор

Never usually comment on videos but found this one really helpful so thought I'd say thanks! You've made this so simple to understand and it's given me a eurika moment as I have been stuck on this for days!

Thanks very much, I will be watching all of your other videos.

stevenbailey
Автор

CSS for form:
#contact-form{
display: grid;
padding: 5% 30%;
}
#contact-form label, #contact-form input{
padding: 10px;
}
#contact-form input[value=submit]{
margin-top: 20px;
max-width: 100px;
}

dzagIT
Автор

Just commenting on a recent video so you could see it.

Thanks for the tutorials!They're very excellent and keep up the good work!Very nice tutorials for beginners;)

snekky
Автор

Thank you very much for the videos, I've seen them all so far and I'm loving it because I'm finally getting a better understanding of the concepts, congratulations for the tutorials!!!

MyFranJu
Автор

I'll become a good node.js developer and would recommend colleagues to go through this videos, YES NINJA making it.

saifmd
Автор

Stumbling across your tutorials is the best thing happend to me... really loving these. I always thought it is difficult to learn nodeJs... but you made it really easy for me. Thanks a lot :) :)
May U be always surrounded by lots of good Ninjas :P :P

bijay
Автор

Truly great series of videos, greatly appreciated!

aaaea
Автор

Loving it dude..hard to find a tutor like you.Great job dude

mariappansubramanianmariga
Автор

You're actually amazing. I think I'll definitely be able to complete my homework after watching this video and #30. Thank you!!

lexscher
Автор

Hey net ninja, could you do a video where you create a full node-js application from scratch?

bytler
Автор

Who tf even dislikes a quality video like this?!!!

saadmansakib
Автор

Thanks for the tutorials!They're very excellent and keep up the good work!Very nice tutorials for beginners;)

cuongnguyenhuu
Автор

Thank you Shaun for the wonderful tutorial.

RaajKanchan
Автор

Very good tutorial! Thank you once again! 💛

kostiantynkarzhanov
Автор

I thought it would come in handy:
if at least one field is not the same as our variables the whole ejs page will crash. In order to prevent it from happening additional logic should be implemented. It might be something like this:

app.get('/contacts', (req, res) => {
if && res.render('contact', req.query);
else {
var person = '', dept = '';
if person = req.query.person;
if dep = req.query.dept;
res.render('contact', {
person: person,
dept: dept
});
}
});

mk_freestyle
visit shbcf.ru