Velocity Reviews

Velocity Reviews (
-   ASP General (
-   -   Problem with submit (

majsen 05-10-2004 10:21 AM

Problem with submit
Hi all,
i have a problem. The user will fill in som textboxes in a form with
a submit button. When the user click the button the form submits
and my asp script fires...
if not isempty(Request.Form("search")) then
end if

but if the user click the return tab the page just reload and the
abowe asp
script does not catch the event.

I tryh to use this script below without success...

<SCRIPT TYPE="text/javascript">
function submitenter(myfield,e)
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;

if (keycode == 13)
return false;
return true;

<form name="form1" method="post" action="./searchResult.asp">

<input name="omrade" type="text" id="omrade" size="18"
onKeyPress="return submitenter(this,event)">

<input type="submit" name="search" value=" S&ouml;k " >

How can i get it to work?
Regards Majsen

Evertjan. 05-10-2004 10:28 AM

Re: Problem with submit
majsen wrote on 10 mei 2004 in microsoft.public.inetserver.asp.general:

> if not isempty(Request.Form("search")) then

if Request.Form("search") <> "" then

The Netherlands.
(Please change the x'es to dots in my emailaddress)

All times are GMT. The time now is 04:07 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.