Form - Take data with PHP

Asked

Viewed 32 times

0

I’m a beginner in this part of creating websites, I’m making a site where will have a registration form, and I want this registration to go to a database, or a page that can access all the records made. I tried to make the form in HTML, referencing to PHP, but when sending by button, the user is redirected to PHP page, and I do not want that to happen, I want that when clicking the Send button, just send this data to the Bank, without going to any other page, How can I solve the problem? Would have to make the form already in PHP?

  • As far as I know, if you make the form already in php and do not inform the path, it will process on the same page (file), I do not know if it is what you are looking for.

  • There is no way to form in PHP. At best make PHP generate HTML, but the result will always be HTML and it will make no difference to your problem. What you need is Javascript, with AJAX request. Search about this.

  • You can do the form in the php file to give a post or get in the file itself or use ajax as @Andersoncarloswoss said.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.