connect with php database | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

connect with php database

can somebody explain this- in this file i have <form method="POST" name="testForm" action="thanks.html" but if I want to connect it to my phpmyadmin database I need to put this file- in action=thanks.html place, but thing is I need that action=thanks.html too, and my question is-is it possible to keep them both and how to do it?

14th Jul 2021, 9:16 AM
Eric Kazhus
Eric Kazhus - avatar
1 Answer
you can put only one target url in 'action' attribute... so you need to use php code url in order to connect to database and echo the thanks.html page, or echo a link to thanks.html page (or any way to load it after result page) if you want to handle result in two steps ^^
14th Jul 2021, 9:29 AM
visph - avatar