[2021]Data Re-submit Problem in php | Data reinserted into database while refreshing the page

preview_player
Показать описание
#php #learnphp
There is a common problem in php while inserting data into the database if you reload the webpage the same data is re-submitted into the database again as many times you reload the page data is re-submitted.

in this video we have discussed a common quick fix for that solution.

Thank you everyone!!
Keep Smiling :)
Рекомендации по теме
Комментарии
Автор

Right after the line 14 echo "Fruit saved..."; do this is what worked for me! thank you for the video ! lol just realized this is a year old but it might help someone!

iSeven
Автор

DOes not work, it say : Warning: Cannot modify header information - headers already sent

SirMika
Автор

how do you solve it with the post method?

VictorLopez-zlgu
Автор

this method is not useful. because the message which will confirm the user that his data has been submitted will not show. In simple no confirmation message is showed.

imtiazahmad
join shbcf.ru