0

connect with php database

can somebody explain this- https://code.sololearn.com/W2a224a103a2 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- https://code.sololearn.com/w72a25A2A18A 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 Réponse
0
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
visph - avatar