Тёмный

Getting User Input | PHP | Tutorial 10 

Giraffe Academy
Подписаться 308 тыс.
Просмотров 80 тыс.
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 49   
@KTBWorld
@KTBWorld Год назад
PSA: If you're getting the "Warning: Undefined array key" error, it's because the $_GET variable isn't defined yet when the page first loads. As long as everything else is done correctly, you can ignore it, the form will run fine, and the warning will disappear after the first time you click "submit". As for why the warning doesn't show up for Mike, I'm assuming he somehow turned off error reporting; under normal circumstances, that warning should definitely appear for the code he's written. To those eager to get rid of the warning, you could wrap the PHP code in an "if" statement that checks whether or not $_GET has been set before attempting to print the variable, but Mike hasn't gotten to if statements yet at this point in the series, so maybe that solution would be uncomfortable for some.
@sidney-richards
@sidney-richards 5 лет назад
Clearest easiest and simplest way I have ever seen someone describe code..Thank You
@DanberryGlobal
@DanberryGlobal 3 года назад
Started learning to code during covid, first tutorial I watched was you teachig python. Couple months later & I'm building websites. Love Brotha FR
@gabehcuodsuoitneterp203
@gabehcuodsuoitneterp203 2 года назад
The GOAT! Keeping civilization going. 🙌
@abhay2192
@abhay2192 3 года назад
Oh thanks sir ! I didn't even know that you have any other RU-vid channel also.😭
@gtechupdates
@gtechupdates 2 года назад
i like understand your code more then other sir
@InnoTechWorld
@InnoTechWorld 5 лет назад
I got error undefined index i searched the problem was solved
@bettyrizzo6167
@bettyrizzo6167 2 года назад
i get same error
@futuristictech4337
@futuristictech4337 2 года назад
Thank you so much. I clearly understood.
@RTBOSS
@RTBOSS 2 года назад
thank you so much
@nibornm1
@nibornm1 3 года назад
Really helpful. Thank you.
@marshall3900
@marshall3900 3 года назад
thank you Mike
@clementk.2561
@clementk.2561 6 лет назад
Great video. Thanks.
@sabuein
@sabuein 3 года назад
Thank you, Mike.
@omar7amdi
@omar7amdi 3 года назад
Why do I get this warning: Undefined array key "name" in C:\.... line ...
@TheMATHEHOUSE
@TheMATHEHOUSE 3 года назад
you need to make sure that the file name after form action="..." is set to your file's name, not site.php. It has to match the file name of what you're working on.
@KTBWorld
@KTBWorld Год назад
@@TheMATHEHOUSE That has nothing to do with it. If error reporting is turned on, then the warning will always appear with this code, even if the directory is set correctly. The actual reason the warning appears is because the $_GET variable isn't defined when the page first loads. As long as everything else is done correctly, you can ignore it, the form will run fine, and the warning will disappear after the first time you click "submit".
@walaress
@walaress 2 года назад
Is an input like this from PHP saved server side? Will the "name" be displayed in the website server side?
@ultraexpress9823
@ultraexpress9823 4 года назад
Great video. Thanks a lot
@shaikmuheeb5526
@shaikmuheeb5526 2 года назад
Good
@matiassolomon7198
@matiassolomon7198 3 года назад
thank you for this tutorial!
@prestonhaffey2805
@prestonhaffey2805 6 лет назад
You're great at explaining this stuff, Thank!
@mukeshvoleti5555
@mukeshvoleti5555 6 лет назад
thq for the vedio.. its a great tutorial and easy to get into our brains.. but can we use php instead of javascript for websites.. can we..?
@ryanoconnor5176
@ryanoconnor5176 5 лет назад
mukesh voleti yes,
@phpu2
@phpu2 3 года назад
Please be advised that no one writes forms like this in 2021. I have not written a that posted to PHP in over 6+ years, personally. Please learn JavaScript AJAX forms and use PHP to catch and process the data.
@irg008
@irg008 5 лет назад
nice video
@erosgabbin3510
@erosgabbin3510 5 лет назад
Thanks!
@idirashahidaramli5680
@idirashahidaramli5680 3 года назад
How to get the value from form with method post ?
@rayhanulislam3943
@rayhanulislam3943 6 лет назад
Please help me to rectify this issue. I can't find out my mistake but it is showing "Undefined index:" Name: Notice: Undefined index: name in C:\xampp\htdocs\www\Story.php on line 13
@InnoTechWorld
@InnoTechWorld 5 лет назад
try this it works for me
@Shubham_Sinn
@Shubham_Sinn 5 лет назад
why you haven't used semicolons in php section.
@kalpanamac3022
@kalpanamac3022 4 года назад
Pls let me know how to input data and store in array
@domo-yi8hj
@domo-yi8hj 3 года назад
Hi, I'm Wondering if someone can help me. I have a simple task for my college course: how could I make an if statement that checks to see if the name is some value(a particular name) before sending user to a separate php page? Thank you
@henryward8311
@henryward8311 4 года назад
nope: echo $_GET["Password"] ?> just gives me that, not the password.
@ianpaul0520
@ianpaul0520 4 года назад
see the name of your input if it Password or password, like that.
@blayx
@blayx 4 года назад
so i understand the $_GET functions, but lets say i want that input information to carry over to a separate file, so example a series of prompts each one in separate file, then on the last page, i wanna each out a summary of all the inputs, kinda like an order summary
@fatpanda3305
@fatpanda3305 4 года назад
$_GET grabs the data from the HTML form, what determines what happens to that data actually precedes $_GET. In this case, the command was "echo", which basically told PHP to print the data on the page. To save it into a file you can use a command like file_put_contents.
@rahulk398
@rahulk398 3 года назад
You could try $_SESSION super global variable
@alexhaussmann2078
@alexhaussmann2078 5 лет назад
Source Code www.mikedane.com/web-developme Does not take me to your source code.
@romariejohynerio3453
@romariejohynerio3453 3 года назад
theres no result i try it
@slickwillie3376
@slickwillie3376 4 года назад
Line breaks. How tedious they are...
@ComplexGamesYT
@ComplexGamesYT 3 года назад
How are you running a PHP file as html?
@wyattmackubbin2262
@wyattmackubbin2262 3 года назад
you can run HTML and PHP or javascript in the same file you just separate the code using tags.
@sonukumar-vq5ni
@sonukumar-vq5ni 5 лет назад
what is action in form
@huggus1629
@huggus1629 4 года назад
it submits the stuff put into e.g. text fields to the path in action . . .
@bettyrizzo6167
@bettyrizzo6167 2 года назад
Error on age!
@krishshah3974
@krishshah3974 2 года назад
poggers
@nakulankurmullam2982
@nakulankurmullam2982 4 года назад
4:02
@henryward8311
@henryward8311 4 года назад
Thank you so much!!!!!!!!!!!!!!
Далее
Building a Basic Calculator | PHP | Tutorial 11
6:56
Одинокая сестра
00:14
Просмотров 15 тыс.
Coding SUCKS for Beginners | Let's Rant!
17:40
Просмотров 161 тыс.
Learn PHP in 15 minutes
15:00
Просмотров 2,7 млн
Login Page With Authentication Using PHP & MYSQL
14:44
Learn JSON in 10 Minutes
12:00
Просмотров 3,2 млн