March 1, 201115 yr Does anyone know of a quote generator, so that the user answers questions, and it will give them a basic quote of the price depending on the answers given? Thanks for the help, much appreciated! Ryan
March 1, 201115 yr I would think you could do this very easily with a small bit of PHP. if ($_POST['question1']=="A") { $price=$price+10; } elseif ($_POST['question1']=="B") { $price=$price+20; } if ($_POST['question2']=="A") { $price=$price+10; } elseif ($_POST['question2']=="B") { $price=$price+20; } if ($_POST['question3']=="A") { $price=$price+10; } elseif ($_POST['question3']=="B") { $price=$price+20; } echo "£ ".$price; Obviously fairly crude, but should give a good start. (Sanatize user input of course!).
Create an account or sign in to comment