|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
ASP script test for empty entry in search box
hi
does any one know how to create a test to check if a user has entered keywords in teh keyword search box so if they havent i can write <%response write "please enter a word" else <a href="http//home.com"><home> if some one can create a script for this would be usefull as ive just started learning ASP so a script for a totla dummy would be gratefull thanks |
|
#2
|
|||
|
|||
|
You can use
<% if request.form("keyword") = "" then response.write "Please enter something" else '...do your search end if %> where "keyword" is the name of the form element you are using for you search box. |
![]() |
| Viewing: SEO Chat Forums > Other > SEO Scripts > ASP script test for empty entry in search box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|