Support Forums

search.tpl adding required to cat dropdown

This is a discussion on search.tpl adding required to cat dropdown within the Templates, HTML, CSS, and Design Help forums, part of the General category; Hi all, Just wondering in search.tpl, whether it is possible to make the category drop down list set required (as ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 02-27-2010, 01:46 AM   #1
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default search.tpl adding required to cat dropdown

Hi all,

Just wondering in search.tpl, whether it is possible to make the category drop down list set required (as in the searcher must choose a category from the list ?)

Many thanks

Jason
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template

Last edited by jason1971; 02-27-2010 at 05:49 AM.
jason1971 is offline   Reply With Quote
Old 02-27-2010, 08:25 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Form validation is generally done in one of two ways. You use javascript on the client or you have the backend server check for field contents and report back if a field is blank/invalid.

javascript has the benefit of checking before the user submits the form where as the server side cant be done until the form is submitted to the server. Since you have hosted version you cant modify the backend script so you will have to do some searching on the web for javascript form validation and try and employ that method.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Search to every page? nagrap2 Technical Support 5 02-02-2009 06:23 PM
Adding Search to sleepy Templates, HTML, CSS, and Design Help 8 04-09-2006 12:12 PM


All times are GMT -4. The time now is 01:48 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0