I’m using a multiform PHP script given here. It is basically a kind of form completion in multiple steps on the same page. I’m just a beginner in PHP, so I was taking idea from this script.
What I failed to understand is: “How to store the data input by the user in SQL tables?
I’m using a multiform PHP script given here . It is basically a kind
Share
In the
savefunction, instead of saving data into the$_SESSION(here:$_SESSION[$step][$key] = $val;), save it your SQL database.But be careful. You will have to update the script to retrieve information from the database instead of from the
$_SESSIONwhen you set the value in each input tag.edit:
The
savefunction is where you will store each data input from user. Instead of :You should have something like that (the sql queries aren’t good, it’s just an example):