true = go to the topic you put in; false = go to a form similar to the original but alerting you to invalid entry.
Script:
Expand|Select|Wrap|Line Numbers
- <SCRIPT type=text/javascript>
- /*
- Navigate to specific plan code web page
- */
- function getURL(val){
- base = 'http://dhpulse.hosp.dhha.org/EducationTraining/DH_Revenue_Ed/DH_Rev_Ed_Resources/Ins%20Gadget/PlanCards/';
- location = base + val + '.htm';
- return false;
- }
- </SCRIPT>
Form that collects input:
Expand|Select|Wrap|Line Numbers
- <FORM id=form2 name=form2 onsubmit="return getURL(this.url.value)" action=""
- method=post>Enter a Plan Code<BR>
- <LABEL><INPUT size=3 name=url> </LABEL>
- <LABEL><INPUT type=submit value=GO name=Submit> </LABEL>
- </FORM>