am new in php i have a registration in three pages.if i click a last page submit the all values should stored in db.how to do this
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In order to store all the values in the database you will need to pass them along the pages, maybe as hidden post fields. For example if your first page has something like
Your second and third pages should have something like
assuming that your form types are set to post.
To insert into the database when the last submit button is pressed you will need the mysql_query or PDO::exec function.
You may also want to look at Pdo::prepare, PDOStatement::execute and mysql_real_escape_string to protect your site against SQL Injection attacks