form calculation script ?

Status
Not open for further replies.

MoWarez

Active Member
72
2008
10
0
HI Guys I'm trying to find a script or looking for the scrip[t that will do the following


I want members to fill in the form they see on website and based on the information and key words they provide, website gives them options once form is completed.

So lets say I have a file with following keywords.

swimming
scuba-diving
surfing

if any of the 3 above key words are found when person fills in the form website will give them page called "water sports"

lets say key words are

camping
hiking
trekking

website will give them page called "outdoors"

basically I will have many different keywords for many different thing I want my site to grab page which keywords are found in form, if this makes any sense?

Does any one know if there is any kinda form scripts I could use out there?
 
3 comments
thank you very much for them links IWL check them out. I was thinking they might be somehting out there allready made.

Thanks for your time.
 
You could do something like this, but there is probably a simpler way to do it

PHP:
<?php
$postpage = $_POST["postpage"]; 
switch($postpage)
 {
 case 'swimming';
 case 'scuba-diving';
 case 'surfing';
 $page="water";
    break;
 case 'camping';
 case 'hiking';
 case 'trekking';
 $page="outdoors";
    break;
    default;
 $page="default";
    break;
 }
echo "page to load: $page";
?>
 
Status
Not open for further replies.
Back
Top