PDA

View Full Version : How to have switch of include() depending on choice?


nanny
06-12-2009, 06:13 AM
Hi I have a loan calculator and a mortgage calculator and I am wanting to show the correct one on the page. At the moment if I want one or both I paste

include('loan.php');
include('mortgage.php');

but I want the user to make a choice and have the correct include. Is this possible. I tried a switch case but the links were the issue - couldn't figure out how to have the links there to choose.

Thanks

edbr
06-12-2009, 06:29 AM
not sure, but did you try include('$choose');
no i see the problem, i played around and couldnt do it either.