Need help with splitting up the form

Hi,

I am complete newbee to php,

I had a form which i have to implement in a website.

First few information about the site,

i developed a complete html site saved every files with extension php (since it was necessary to have php files to implement the form).

Form is working fine but i want to split it up into two, i want to make it two step form.

In first step it should ask three things:
Car Registration Year
Car Estimated Value
Is your car clear or nearly clear of finance

Depending upon the answer of 1st and 3rd option. it should show one of two different url.

you can look at this site:https://www.loanslogbook.com/index.html

it has the same form i am implementing on my site.

I have tried but i didnt get it right, i would really appreciate it if anoy one can do this for me.

I am not seeing any way to attach necessary files, if there is any way please let me know. Till then i am giving you a dropbox link from where you can download necessary files: http://dl.dropbox.com/u/54912296/lbl-form_v105.zip

I would really appreciate any help here.
Thanks

I haven’t looked at the code, but if all you want to do is move to another page depending on something, just use if statements and header().
[php]if(isset($_POST[‘submit’])) {
// validation (if any) would be here
if($_POST[‘question_1’] == “answer”) {
header(“Location: page2.php”);
}
if($_POST[‘question_3’] == “answer”) {
header(“Location: page3.php”);
}
[/php]
Something like that should work.

Sponsor our Newsletter | Privacy Policy | Terms of Service