Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 23rd, 2004, 09:26 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 119
Thanks: 0
Thanked 0 Times in 0 Posts
Default The server side doenot work

If the user doesnot enter the first name and last name. It
should pop up the message. forgot your first name and last name
but it it should not go the server if I hit button. If the user
enter first name and last name. We should use the same button
and it should go the server. My problem is that when user enters
first name and last name it doesnot go the server.
 <Input type= "button" value=search onclick="javascript:thisForm.txtMode.value='D';Cal l();"id=button1 name=button1 >
    <Input type ="hidden" name =txtMode>


 
Old September 23rd, 2004, 09:47 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sureshbabu Send a message via Yahoo to sureshbabu
Default

Hi,
    This code will help you.

<script>
function validate()
{
  if(document.thisForm.text1.value=="")
    {
       alert("Please enter the name");
       return false;
     }
 if(document.thisForm.text2.value=="")
    {
       alert("Please enter the password");
       return false;
     }

     document.thisForm.submit();



}

</scipt>

<body>
<form name=thisForm action="save.asp">

<input type=text1>
<input type=text2>


<Input type= "button" value=search onclick ="return validate()">

</form>
</body>

Thanks
Suresh Babu







Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Converting Client-side to Server-side Code kwilliams ASP.NET 2.0 Professional 1 November 21st, 2007 05:25 PM
Firing server side events at client side codes mehdi62b ASP.NET 1.0 and 1.1 Basics 6 May 18th, 2005 09:11 AM
sharing a server-side variable with client-side pigtail Javascript How-To 6 November 4th, 2004 02:01 AM
Two Client Side vs Server Side issues Milo Classic ASP Professional 5 May 25th, 2004 02:47 PM
Accessing Server Side Data on Client Side steve456 Classic ASP Professional 3 October 15th, 2003 02:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.