Want more? Explore the library at
Official site
Tag: post get php, posting php data, codecourse, beginners php, web development, GET, get and post, tutorials, POST, php, php forms, php basics, php form submitting, learn php, phpacademy
Xem thêm: https://meohay360.com/category/internet
Nguồn: https://meohay360.com
Very helpful video! thank you:)
Thanks bro!
you can also use “Your name is” . $name . “and your age is” . $age
Instead of “Your name is {$name} and your age is {$age}”
Thank you for this it really helped!
Hello, I love the videos!
I set up a free IoT Server that will allow you to send information between devices over the internet using the POST request.
Test out your new POST skills here: @t
I would appreciate some feedback!
Not a Hindi accent, a butter-smooth English accent. Plus Good content. Wonderful.
i don't know why post work like get? i use post and it shows the information in url Why???
thanks alot trying to find this peice of info about 3 day 🙁
great video, really made me understand it, thanks
Thx ))) very useful and i want to learn php more can i learn more from you
<?php
if(isset($_POST['name'], $_POST['age'])) {
$name = htmlentities($_POST['name'], ENT_QUOTES, 'UTF-8';
$age = (int)$_POST['age'];
echo "You are {$name} and you are {$age} years old.";
}
?>
<form action="index.php" method="post">
<input type="text" name="name" placeholder="Name">
<input type="text" name="age" placeholder="Age">
<input type="submit">
</form>
<?php
if(isset($_POST['name'], $_POST['age'])) {
$name = htmlentities($_POST['name'], ENT_QUOTES, 'UTF-8';
$age = $_POST['age'];
echo "You are {$name} and you are {$age} years old.";
}
?>
<form action="index.php" method="post">
<input type="text" name="name" placeholder="Name">
<input type="text" name="age" placeholder="Age">
<input type="submit">
</form>
<?php
if(isset($_POST['name'], $_POST['age'])) {
$name = $_POST['name'];
$age = $_POST['age'];
echo "You are {$name} and you are {$age} years old.";
}
?>
<form action="index.php" method="post">
<input type="text" name="name" placeholder="Name">
<input type="text" name="age" placeholder="Age">
<input type="submit">
</form>
<?php
if(isset($_POST['name'], $_POST['age'])) {
echo 'Name and age are available';
}
?>
<form action="index.php" method="post">
<input type="text" name="name" placeholder="Name">
<input type="text" name="age" placeholder="Age">
<input type="submit">
</form>
<?php
if(isset($_POST['name'])) {
echo 'OK';
}
?>
<form action="index.php" method="post">
<input type="text" name="name" placeholder="Name">
<input type="text" name="age" placeholder="Age">
<input type="submit">
</form>
<?php
if(isset($_POST['name'])) {
echo 'OK';
}
?>
<form action="index.php" method="post">
<input type="text" name="name">
<input type="submit">
</form>
<?php
print_r($_POST);
?>
<form action="index.php" method="post">
<input type="text" name="name">
<input type="submit">
</form>
<?php
print_r($_GET);
?>
<form action="index.php" method="get">
<input type="text" name="name">
<input type="submit">
</form>
<?php
print_r($_REQUEST);
?>
<form action="index.php" method="get">
<input type="text" name="name">
<input type="submit">
</form>
<form action="" method="get">
<input type="text" name="name">
<input type="submit">
</form>
<form action="" method="post">
<input type="text" name="name">
<input type="submit">
</form>
<form action="" method="">
<input type="text" name="name">
<input type="submit">
</form>
plz help me i'm desperate
https://stackoverflow.com/questions/51461221/why-is-there-no-post-data-when-i-run-my-php-code-from-android-studio
That was great! Thank you so much.
I have a question: since 4:31 you started using PHP's open-close tag even though you are within a php file. Is there a special reason for that ? And I feel like starting to differentiate between the two, many thanks!
doesnt work for me … i typed in the same code as you did…
This is insanely well done i appreciate the time and effort you've put in this video and the excellent explanation of post and get.
Awesome explanation! Thank you!
I need a little help
the php code isn't truing in to a color ( it's not a function and typed exact the same as you) suggestions?
This is great, thanks for uploading.
Even just the print_r() is SUPER helpful.
Why does post allow you to send more data?
get is for getting info from the database and post is for adding data to it?