PDA

View Full Version : 2 Page survey form in PHP with only few details required...



vishalraj9
May 8th, 2007, 02:26 PM
Hi,
We have a PHP feedback form which is like a survery broken into 3 pages. The first page asks user some questions and they have to answer all & press Next button. They are taken to a 2nd page where they should answer some more questions. This page has 2 buttons. One is previous button, so that they can go back & change their selection and a Next button so that they can move to the 3rd page. On the third page, they will be asked their details like Name, Email & Comments and when they click submit, the form should mail us all the details from all the 3 pages and send the user an acknowledgement that their submission has been received.

(Maybe we can use SESSIONS but I don't know how to do that)

So all we have to do is to make sure that all the details from the page 1 get carried over to page 2 & the details from page 1 and 2 get carried to page 3 collectively 2. Also we have to see that the users can go back to the previous pages & edit the data if needed.But the page should still remember their previously filled data. It makes no sense if they can't see properly what they have filled in perviously. They can select a different option and then resume to the other pages & the info that is being carried over should be updated as well. In short the form data should be updated depending on user actions.

I would appreciate it if anyone can provide with a quick answer as I need this for a page Iam going to set this up shortly. Iam attaching the .html files in the zip just so you could attach the PHP file to it.

Thank you & looking forward to solutions.

rschoenbach
May 8th, 2007, 09:15 PM
why dont u just put all the questions on 1 page?

vishalraj9
May 10th, 2007, 11:26 PM
Because there are many questions. Like about more than dozen & don't wanna overwhelm the users with data. Research shows that people tend to use the little red button with "X" on it, located in the top right hand corner of every page in Internet Explorer and any other browser if user looks at so much data all at one time. So that's why..break it up... Plz let me know if you can...Thanks.

rschoenbach
May 11th, 2007, 03:15 PM
Because there are many questions. Like about more than dozen & don't wanna overwhelm the users with data. Research shows that people tend to use the little red button with "X" on it, located in the top right hand corner of every page in Internet Explorer and any other browser if user looks at so much data all at one time. So that's why..break it up... Plz let me know if you can...Thanks.

im not going to do this project for you. but if you have a question I will try to answer

Digitalosophy
May 11th, 2007, 04:35 PM
I would appreciate it if anyone can provide with a quick answer as I need this for a page Iam going to set this up shortly. Iam attaching the .html files in the zip just so you could attach the PHP file to it.

Thank you & looking forward to solutions.

Hmm certainly sounds like you are looking for someone to attach a working version of this for you :jail:

You need to pass information back and forth - not that difficult I'd start be searching for PHP forms, etc.

simplistik
May 11th, 2007, 05:45 PM
Well your best bet is to do a search for tutorials on sessions since that's how it'll need to be done.

eirche
May 11th, 2007, 10:37 PM
session_start();
$_SESSION['question1'] = 'answer1';
$_SESSION['question2'] = 'answer2';


read php documentations on session. if you don't wanna learn and just want the thing done for you, i think it's beyond anyone's willingness to help.

vishalraj9
May 15th, 2007, 11:30 PM
Thanks all for your time & efforts. I learnt how to make it.I have huge forms & each page has more than 25 questions( Now that market is changing ). I just had 3-4 fields in the attached files & hoping some one could provide me with jump-start on the same so that I can learn it & do the rest for myself.

A special thanks to "eirche" for making an attempt to guide me in the right direction.