PHP Tutorial (& MySQL) #21 - Showing Errors

preview_player
Показать описание
Hey gang, in this PHP tutorial I'll show you how to display errors on a web form, as well as persist data that a user has previously entered.

----------------------------------------

🐱‍💻 🐱‍💻 Course Links:

🤑🤑 Donate


🎓🎓 Find me on Udemy

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

Every video gets me hyped to get home and update my project and add new features! Thanks again!

fleanardnimoy
Автор

super great work!
Net Ninja always make everything clear in all of his videos!

krisp
Автор

This tutorials are gold. Believe me they are

kcapt
Автор

Yeeees I am in the Ninja clan gang. Hello brothers. Wish you all the best with our incredible Ninja Master.

Johan_tube
Автор

Loving this series. Super clear teaching and an enjoyable project. Keep up the great work. Thank you!

davefinn
Автор

Mate absolutely brilliant. Honestly one of the best explained pieces I have watched and as learner I watched loads. Your really explained this so well, 😊.

philipanderson
Автор

I definitely love your tutorials, i'm not only learning programming language, I'm also learning british accent

floraquebec
Автор

Just can't but acknowledge that your teaching is very awesome as I stumbled on this video.

ayobamiologun
Автор

When i finish working on my project and raise some money i'll come back to donate. thank you so much for this

redwan_lmati
Автор

i'v said it on the HTML CSS playlists, you deserve to hear it again : u are awesome ! thank you for this knwocledge

oussamaboumhaout
Автор

Great work! Your way of explaining is simply amazing, thank you for such a quality content

ahmed_music
Автор

Instead of typing
<?php echo htmlspecialchars($title) ?>
you could use
<?= htmlspecialchars($title) ?>
This is shorter and better way to echo out something
And also instead of creating variables above for old values you can use something called null coalesce operator like this
<?= $title ?? " " ?>
This will check if that variable exists or not. if it does it echos that out
but if it doesn't it will echo that other empty string that is after those two question marks
so that you don't get undefined variable error

mohansharma
Автор

How can we pass array of errors from backend to frontend with help of header function ? Please explain sir 😌

akshatagrawal
Автор

Very good videos on processing form in PHP.

However I have a question:
1) In creating a contact form, a <textarea> element is used for user messages (which are usually multi-lines) instead of a textbox element. Please advise how to persist the entered information to the <textarea> as there is no value attribute in <textarea> element.


Thank you.

buck
Автор

Pure gold as always Shaun. Will there be a 'form submitted' confirmation message before the homepage redirect or a banner on the homepage with 'form submitted successfully' ? From a UX point of view that would be preferable, no? Otherwise users may not be sure if the form was actually sent prior to the redirect.

maxiequa
Автор

I have a question about 'htmlspecialchars()'. Why we should use it even though we restrict earlier what user can and cannot enter in the forms using 'preg_match()'? And why we do this when we outputting the data and not when we inputting them?

DMKano
Автор

The idea of retaining the values was wonderful!! I was wondering how to do that if it were a checkbox?

deboparnabanerjee
Автор

This is not just a tutorial, it's an educational class for who love server-side programming and projects. Thanks, Shaun.
(Shaun, I have a problem with the ingredients field. When I submit the form, the value of this field fades out, while the other fields are ok. Where is the problem? (I check everything, but it doesn't work.)

anonymouseverx
Автор

amazing !!!! what a beautifull explaination👏👏

abdellatifhassani
Автор

Hey ninja thanks a lot for these videos have been very helpful. Do you recommend jumping to Laravel after this series or is there more to learn? Thank you!

terrytech
visit shbcf.ru