474,040 Members | 3,407 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.dt d">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Page 3</title>
<script language="javas cript" type="text/javascript">
function clicker(){
if (document.getEl ementById("5824 04").value=="fi nancial")){
window.open("pa ge2.aspx") ;
}


}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<span style="font-size: 12pt">
<b>§ 58‑2‑40.&nbs p; 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 _____________&n bsp; _______________ _ 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="clicke r()" style="width: 102px">Next Page</button>
</form>
</body>
</html>
Jul 12 '07 #1
3 1709
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
3224
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 password (plain text): 1) Validate that the password is correct for that user *without actually logging in*. 2) If the password is valid, return a list of all the groups the user belongs to. Otherwise, return some error string.
3
4544
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 last part is the timezone offset. I've tried to do it with the following function. This works for me, I get +0200 for the timezone part, which makes sense, because we're
5
1445
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 from a query string action=edit, now when i click on the update button it does the update event, the problem is, it still has the old unedited data in memory... and places the old stuff back into the database (saw this when debugging) the SQL is...
2
2461
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 connection, and this error yet occurs. Someone knows why this ?
1
10178
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 for encrypting text strings using MD5 hash, but I cannot find a way to get this to work with images that exist in picture boxes. I am trying to get a hash for the image file, but not from the file but from the picture box as there is some editing...
0
2409
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 D 'Delete
1
4989
by: thangchan | last post by:
Hi all, i am getting SQL update problem. as below ======================error messages ======================= Server Error in '/CMS' Application. -------------------------------------------------------------------------------- 無值æ供給一或多個必è¦åƒæ•¸ã€‚ Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more
6
4124
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 falls apart. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Compare Strings</title>
3
8947
by: sam | last post by:
same as subject?
0
12130
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11596
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
11137
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
10301
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6646
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6819
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5403
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 we have to send another system
2
4936
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.