473,498 Members | 1,809 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting information from a text box to compare to a predetermined string

2 New Member
I am trying to get what the user inputs into the box and then take that to check their answers and make sure everything is correct before moving on. here is my code
<%@ Page Language="vb" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Page 3</title>
<script language="javascript" type="text/javascript">
function clicker(){
if (document.getElementById("582404").value=="financi al")){
window.open("page2.aspx") ;
}


}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<span style="font-size: 12pt">
<b>§ 58‑2‑40.&nbsp; Powers and duties of Commissioner. (continued)</b> &nbsp;
</span>
<p class="ablock1" style="margin: 0in 0in 0pt 27pt; text-indent: -27pt">
<span style="font-size: 12pt">(3)&nbsp; &nbsp; </span>Prescribe to the companies, associations, orders, or bureaus
required by Articles 1 through 64 of this Chapter to report to the Commissioner,
the necessary forms for the statements required. The Commissioner may change those
forms from time to time when necessary to secure full information as to the standing,
condition, and such other information desired of companies, associations, orders,
or bureaus under the jurisdiction of the Department.</p>
<p class="ablock1" style="margin: 0in 0in 0pt 27pt; text-indent: -27pt">
<span style="font-size: 12pt">
&nbsp;
</span>
</p>
<p class="ablock1" style="margin: 0in 0in 0pt 27pt; text-indent: -27pt">
<span style="font-size: 12pt">*
&nbsp; &nbsp; &nbsp; No Response Necessary</span></p>
<p>
&nbsp;
</p>
<p class="ablock1" style="margin: 0in 0in 0pt 27pt; text-indent: -27pt">
<span style="font-size: 12pt">(4)&nbsp; &nbsp; Receive and thoroughly examine each financial statement required
by Articles 1 through 64 of this Chapter.</span></p>
<br />
<p class="ablock1" style="margin: 0in 0in 0pt 27pt; text-indent: -27pt">
<span style="font-size: 12pt">*&nbsp; &nbsp; &nbsp; The Commissioner is responsible for receiving and examining
any required <input type = "text" name="582404" id="582404" size="9" maxlength="9"/> statement.</span></p>
<p>
&nbsp;
</p>
<p class="ablock1" style="margin: 0in 0in 0pt 27pt; text-indent: -27pt">
<span style="font-size: 12pt">(5) &nbsp; &nbsp; Report in detail to the Attorney General any violations of
the laws relative to insurance companies, associations, orders and bureaus or the
business of insurance; and the Commissioner may institute civil actions or criminal
prosecutions either by the Attorney General or another attorney whom the Attorney
General may select, for any violation of the provisions of Articles 1 through 64
of this Chapter.</span></p>
<p class="ablock1" style="margin: 0in 0in 0pt 0.75in; text-indent: -27pt">
<span style="font-size: 12pt">
&nbsp;
</span>
</p>
<p class="ablock1" style="margin: 0in 0in 0pt 27pt; text-indent: -27pt">
<span style="font-size: 12pt">*&nbsp; &nbsp; &nbsp; The Commissioner must report to the _____________&nbsp; ________________ any violation of insurance
laws.</span></p>
<p class="ablock1" style="margin: 0in 0in 0pt 27pt; text-indent: -27pt">
<span style="font-size: 12pt">
&nbsp;
</span>
</p>
<p class="ablock1" style="margin: 0in 0in 0pt 27pt; text-indent: -27pt">
<span style="font-size: 12pt">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Answer: Attorney General</span></p>
&nbsp;<p class="ablock1" style="margin: 0in 0in 0pt 27pt;
text-indent: -27pt">
<span style="font-size: 12pt">(6)&nbsp; &nbsp; Upon a proper application by any citizen of this State, give
a statement or synopsis of the provisions of any insurance contract offered or issued
to the citizen.</span></p>
<p class="ablock1" style="margin: 0in 0in 0pt 27pt; text-indent: -27pt">
<span style="font-size: 12pt">
&nbsp;
</span>
</p>
<p class="ablock1" style="margin: 0in 0in 0pt 27pt; text-indent: -27pt">
<span style="font-size: 12pt">*
&nbsp; &nbsp; &nbsp; No Response Necessary</span></p>
</div>
<button type="button" name="Next Page" id="BUTTON1" onclick="clicker()" style="width: 102px">Next Page</button>
</form>
</body>
</html>
Jul 12 '07 #1
3 1684
gits
5,390 Recognized Expert Moderator Expert
hi ...

check the brackets here ;)

Expand|Select|Wrap|Line Numbers
  1. if (document.getElementById("582404").value=="financial")){
  2.     window.open("page2.aspx") ; 
  3. }
kind regards
Jul 12 '07 #2
kibong
2 New Member
hi ...

check the brackets here ;)

Expand|Select|Wrap|Line Numbers
  1. if (document.getElementById("582404").value=="financial")){
  2.     window.open("page2.aspx") ; 
  3. }
kind regards
I dont see what you are talking about with the check the brackets comment
Jul 13 '07 #3
gits
5,390 Recognized Expert Moderator Expert
there is one closing bracket that closes nothing ... its a syntax error ...

kind regards
Jul 13 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
3186
by: Tim Daneliuk | last post by:
OK, I've Googled for this and cannot seem to quite find what I need. So, I turn to the Gentle Geniuses here for help. Here is what I need to do from within a script: Given a username and a...
3
4489
by: Ilja Booij | last post by:
Hi all, I have some trouble with the following: I'm getting a time string, in YYYY-MM-DD HH:mm:ss format, which I need to translate into a string with DD-Mon-YYYY HH:mm:ss +HHMM, where the...
5
1416
by: Brian Henry | last post by:
I have a page which reads an article from the database it has 1 text box, 2 dropdown lists, and a longreat HTML text box. I load the information from the database when the page is set to edit mode...
2
2420
by: Ricardo Magalhães | last post by:
Hi, I using this code, to connect with a paradox file with ASP.NET. The first time its connect ok, but others times occurs the error: "ERROR - no error information available" I close all...
1
10066
by: sympatico | last post by:
Hi, I am trying to compare 2 images to check if they are exactly identical (in terms of data), I thought this would be quicker than analysing pixels of the images. I have found lots of examples...
0
2371
by: richardkreidl | last post by:
I have the following hash script that I use to compare two text files. 'Class Public Class FileComparison Public Class FileComparisonException Public Enum ExceptionType U 'Unknown A 'Add...
1
4957
by: thangchan | last post by:
Hi all, i am getting SQL update problem. as below ======================error messages ======================= Server Error in '/CMS' Application....
6
4092
by: cutlass | last post by:
Need help in thus script. Trying to create the script that uses comparison operators and functions to compare two strings entered by user. When I add in the info in the script section everything...
3
8868
by: sam | last post by:
same as subject?
0
7168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7210
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6891
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7381
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5465
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4916
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1424
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
293
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.