Question
auto select with select box
Hi
I have a site which has 8 services.each service has it own page. When the user goes to the service page there will be a link which will take them to a form. I want the form to be able to identify which service is there and select that one automatically.
I have done this previously but only with a form. Can you please help me to fix this.
Link on service page <a href="moreinfo.cfm?service=WorkGroup Consultancy">Click here for Further Information</a>
select box in form <select name="service">
<option value="UK Immigration" <cfif structKeyExists(form,"UK Immigration") AND form.service eq "WorkGroup Consultancy">selected="selected"</cfif>>UK Immigration</option>
<option <cfif structKeyExists(form,"WorkGroup Consultancy") AND form.service eq "WorkGroup Consultancy">selected="selected"</cfif>value="WorkGroup Consultancy">WorkGroup Consultancy</option>
<option value="Legal Managment Software" <cfif structKeyExists(form,"Legal Managment Software") AND form.service eq "Legal Managment Software">selected="selected"</cfif>>Legal Managment Software</option>
<option value="Search Engine Optimization" <cfif structKeyExists(form,"Search Engine Optimization") AND form.service eq "Search Engine Optimization">selected="selected"</cfif>>Search Engine Optimization</option>
<option value="Marketing Consultancy" <cfif structKeyExists(form,"Marketing Consultancy") AND form.service eq "Marketing Consultancy">selected="selected"</cfif>>Marketing Consultancy</option>
<option value="Project Management" <cfif structKeyExists(form,"Project Management") AND form.service eq "Project Management">selected="selected"</cfif>>Project Management</option>
<option value="Training" <cfif structKeyExists(form,"Training") AND form.service eq "Training">selected="selected"</cfif>>Training</option>
<option value="Web Design"<cfif structKeyExists(form,"Web Design") AND form.service eq "Web Design">selected="selected"</cfif>>Web Design</option>
</select>
I have a site which has 8 services.each service has it own page. When the user goes to the service page there will be a link which will take them to a form. I want the form to be able to identify which service is there and select that one automatically.
I have done this previously but only with a form. Can you please help me to fix this.
Link on service page <a href="moreinfo.cfm?service=WorkGroup Consultancy">Click here for Further Information</a>
select box in form <select name="service">
<option value="UK Immigration" <cfif structKeyExists(form,"UK Immigration") AND form.service eq "WorkGroup Consultancy">selected="selected"</cfif>>UK Immigration</option>
<option <cfif structKeyExists(form,"WorkGroup Consultancy") AND form.service eq "WorkGroup Consultancy">selected="selected"</cfif>value="WorkGroup Consultancy">WorkGroup Consultancy</option>
<option value="Legal Managment Software" <cfif structKeyExists(form,"Legal Managment Software") AND form.service eq "Legal Managment Software">selected="selected"</cfif>>Legal Managment Software</option>
<option value="Search Engine Optimization" <cfif structKeyExists(form,"Search Engine Optimization") AND form.service eq "Search Engine Optimization">selected="selected"</cfif>>Search Engine Optimization</option>
<option value="Marketing Consultancy" <cfif structKeyExists(form,"Marketing Consultancy") AND form.service eq "Marketing Consultancy">selected="selected"</cfif>>Marketing Consultancy</option>
<option value="Project Management" <cfif structKeyExists(form,"Project Management") AND form.service eq "Project Management">selected="selected"</cfif>>Project Management</option>
<option value="Training" <cfif structKeyExists(form,"Training") AND form.service eq "Training">selected="selected"</cfif>>Training</option>
<option value="Web Design"<cfif structKeyExists(form,"Web Design") AND form.service eq "Web Design">selected="selected"</cfif>>Web Design</option>
</select>
