+ 1

How to save html form data to php file

Actually my website is of multipages like we click on the "next" button to go on next page.. There's a "save" Button so that when we click on it the details we entered in the form gets saved locally and an alert appears showing "your data is saved".. That's what I want to do

27th Feb 2022, 9:37 AM
Mansi Kanojia
Mansi Kanojia - avatar
5 Answers
+ 1
Vicky Tanner I have already tried that but the problem is that it is showing the code as it is instead of the result
27th Feb 2022, 10:40 AM
Mansi Kanojia
Mansi Kanojia - avatar
+ 1
When we write ? Php Echo.....name : ( for example) ? > It has to show the name but it is showing the code
27th Feb 2022, 11:09 AM
Mansi Kanojia
Mansi Kanojia - avatar
0
You need to search for $_GET and $_POST tutorial to handling form data. For saving form data you can search for database tutorial in PHP.
27th Feb 2022, 10:18 AM
Vicky Tanner
0
What do you mean with that? What code is showing?
27th Feb 2022, 11:07 AM
Vicky Tanner
0
Did you mean '<?php'?
27th Feb 2022, 11:18 AM
Vicky Tanner