Random True/false Quiz

Here's what I want to do (i'm kind of there in JavaScript, but want to move it to ASP).

I have 17 different html pages. quiz1.html > quiz17.html.

The user says take a quiz and it pops up a window holding quiz1.html.

Within each page is a true/false question. Upon answering the user is told:

1. what they answered.
2. if that is correct or not
3. a corresponding sentence about the question.
4. an image the corresponds to if they were corect or not.

(This is all done in javascript).

----

However, now I want to take these 17 questions and randomize them and choose 6 questions.

For example:

The window pops up and it's question 1 they do that then move to the next one. 1-6 (random out of 17.

I'd like to do this in ASP.

View Replies


ADVERTISEMENT

True Or False Quiz

i m trying to create a true and false quiz which accesses the questions from a access database processes the results and then writes back to the database

I dont know how to structure the code for the radio buttons,i also need to give the user immediate feedback, but i cant use pop up boxes

View Replies View Related

True Or False In A Yes/no Field

in one of my sql queries on an asp page i am trying to select some data from an access table. The problem is the search criteria is based on a yes/no field. I need to find any record where the value is null or true. So far i have this:

if ISNULL(orseof("Returned")) OR orseof("Returned") = True then

the ISNULL section works it is just the = true bit that doesn't.

View Replies View Related

ASP CHECKBOX: How To Send True/false To DB

Been having problems sending a true/false value to my database from a checkbox/radio group. Using checkboxes.... Code:

View Replies View Related

Assigning A Boolean Of True Or False To VBScript Variable...

Is there a way I can assign a value of true or false to a VBScript variable? I have a function where I want to initiate a value of false: Would this work? Code:

View Replies View Related

Display Ms Access True/false Fields As Check Marks On ASP Page

what is the easiest way to display Yes/No, True/Falst, On/Off MS Access fields as check marks on an ASP page? it would be either checked or unchecked.

View Replies View Related

Quiz Example

I want to find a Quiz example in ASP with random questions from a database and a score.I find many quiz examples in internet but not with random questions.

View Replies View Related

Making A Quiz

Does anyone have a clue have to make a quiz in asp using an xml file? I found a good quiz but the code is in asp.net so we can't use it

View Replies View Related

Form Submit Quiz

<form action="a.asp" method="get" >


<input type="image" border="0" src="IMAGES/oklar.jpg">

</form>

im usnig this codes to submit form when a user click on oklar.jpg(an image)
... but it submits form ***a.asp?x=6&y=8*** like this.. x and y takes
randomize values... how can i remove x and y variables from my string... if
it cant be possible how can submit a form when a user click my image file...

View Replies View Related

Create Online Quiz

I want to create a online quiz where in each page i have a question and 4 choices to select for the user. Now what i want is that each page(ie each question) have a time limit(eg. 5 secs). Now after the time limit has passed, the page should get disabled ie even if the user clicks back or refresh button the form response buttons should get disabled or the browser should display that the page has expired.

i want to have 2 tables in my database. One for the questions and answers and correct ansers.. and another table for users who register and their individual scores. Now how can i handle these two tables in one ASP file .

View Replies View Related

The Values From A Quiz Form And Display The Results.

I am trying to build a page in ASP/MSsql with the aid of dreamweaver, the page contains total of 6 Questions, each question has 3 choices, of which one of the choice contains the right answer with a hidden value = to 1 and the wrong choice hidden value = to 0.
What i am trying to achieve is to collect the values and insert it to a database and at the same time display the results on the confirmation page.

Collecting data’s and inserting to the database is not a problem which i am able to do it. The area that i am stuck is the possibility to collect the values, adds the number of right answers (e.g. 1+1+0+0+1+0 = 3) and displays it on the confirmation page.
I was thinking if it was possible to use cookies for this, like storing the values Q1 = 1 when it is correct and Q1 = 0 when it is wrong while submitting the form and the confirmation page retrieves the values from the cookies, addition the number of right answers ( Q1+Q2+….Q6) and display it on the page.

E.g. the confirmation page displays: Your score is 2 out of 6.


View Replies View Related

Displaying Quiz/test Results On Same Page

I have created a quiz with 14 questions that the user can click a yes radiobutton or no radiobutton. In the code-behind I have set a varable to store the selected items.

What I have taking place is if yesRadiobutton is selected the variable is incremented by 1. then after all the radiobuttons have been added up. i check the variable using an if statement. Code:

View Replies View Related

Xml Variable FALSE

I'm not too familier with XML, this is probably a simple question but in my script I use this:

...
xml.Open "GET", url, FALSE
xml.Send()
Response.write xml.Responsetext
...

now, this is probably a very simple thing and I'm blind or something but how do I make it do something besides just quitting if it's false???

View Replies View Related

IsNumeric() = False

I wrote a stored procedure to INSERT a new row in the database. It returns the new ID via @@IDENTITY. This value is read by my ASP and stored in variable intNewID. The value displays fine via <%= intNewID %>. But when I tested it using IsNumeric(intNewID), it returned False.

View Replies View Related

If Exist=false

I need a way to check if a certain folder exists. If it doesn't exist i want to create it. How can i do this?

View Replies View Related

SendEmail Returning False

I have two forms, each with its own processor ASP. Both use the SendEmail.asp mailer program. One form works, the other fails at the SendEmail call, and I cannot figure out why.

The form code of the form returning no mail sent: ....

View Replies View Related

False User/password

I lethe user enter a username and password and through a SQL-statement I
check if there is a corresponding password in the database (Yes I know,
not very good security but for the moment it's enough). Problem is that
when I enter a false user/password, I want the code to redirect to
another .asp-page which states the user is not valid. Problem lies
within the statement "if rsMOS is nothing then response.redirect
"VWGloginAgain.asp" ". Somehow, the code does not return 'nothing' but
something else.
How do I figure out what it returns? Or, how can I make sure it returns
a 'nothing' when no such password is found in the database?
Here's my code snippet ('usr' and 'ww' are defined earlier; furthermore
I've left out the redirects, but I've tested the first
if-then-conditions and they work fine... Just the 'nothing' does not
work):

View Replies View Related

False 'ASP 0113' Error Message

Getting a false error message listed below. The error occurs only when using an ALIAS instead of actual computername i.e. the server name is INTRANET01 but the alias is HELPDESK.

error 'ASP 0113'

Script timed out

The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeOut or by changing the value in the IIS administration tools.

View Replies View Related

How Do I Make Random Images Not Random?

However, what I want to do is include a request.querystring("ID"), so that IF an ID is defined, eg ID=3, , it will display the relevant (not random) information. I've tried this every way I can think and get type mismatches, etc etc. It's probably really simple but I can't see it.

<%
limit=3
redim link(limit)
redim image (limit)

link(1)="xxx"
image(1)="image1.jpg"

link(2)="xxx"
image(2)="image2.jpg"

link(3)="xxx"
image(3)="image3.jpg"

randomize
random=int(rnd*limit)+1

%>
<center>
<a href="<%= link(random) %>">
<img src="<%= image(random) %>" border="0"></a>

View Replies View Related

Making It Random (getting Random Numbers)

I just wanted to know whats the best way to generate 50 or say X amount of number at random without having to repeat any of the previous number...

so far I've the following:

[VBS]<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

<%
function RandomNumber()
dim theRandom

Randomize
'RandomNumber = Int((upperbound - lowerbound + 1) * Rnd + lowerbound)

theRandom= Int((99 - (0) + 1) * Rnd + (0))

if (theRandom<10) then theRandom = "0" & theRandom

RandomNumber = theRandom
end function
%>[/VBS]

and then I've this in the body of HTML doc: Code:

View Replies View Related

Random Token Generator - Not Really Random

We have the need to have a random token (a 16 char alphanumeric field) to be used as the key for one of our SQL tables. I have created a random token generator, however after only 3 months in production, it appears that we had an instance where a token that already existed in the tables was created. There are 3810 records currently in the database so it isn't like there are billions of records there.

I contacted an old college buddy of mine who is a mathematician, and he claims, assuming that random really does mean random, that the chances of getting a duplicate token are 1 in 79.5 septillion (79,500,000,000,000,000,000,000,000).

So my conclusion is that this was either a complete freak of nature occurance, or my random generator isn't really all that random. Here is the code behind how I am generating this: Code:

View Replies View Related

SPLIT Either BOF Or EOF Is True?

I'm pretty new at this so if someone could tell me what I need to do to the foloowing code I would really appreciate it!

strSQL = "SELECT * FROM chapmeetreq2 WHERE chapter = '" & session("chap") & "' and entrydate = '" & date() & "' order by req_id desc" ...

View Replies View Related

True Answer Re Timeouts

I've been using text files for Tab-Delimited/ADO/ASP sites so that users can
update and display their products lists through my system with relative
ease.

Only problem is that for the last few months or so, this system has been
generating loads of timeouts. ISP has said that I should be looking to
upgrade my system, as it is the mechanics of it that are creaking under the
strain. My queries are:

a) Which REALLY performs better OLEDB DSN-less or ODBC DSN-less?

b) If I convert the system to use 1 Access DB rather than 50-odd
tab-delimited text files will this REALLY perform better in relation to
timeouts?

To give you some idea of the problems, the site can viewed by going to
www.bardwells.co.uk and clicking the Product List link.

I just can't understand it because the pages on the whole are very lean and
zippy (esp. ADSL), but its these exact same Broadband users who seem to have
more trouble with timeouts than dial-up ones.

View Replies View Related

True Image Thumbnails

How can my ASP serverscript read a JPG file and create a small thumbnail
image? I don't mean simple resizing, but true resizing so that the image
actually gets smaller in size. Is this possible without the use of a 3rd
party component?Does anyone have a code example for me?

View Replies View Related

Subscript Out Of Range: 'True'

I'm getting this error:

Microsoft VBScript runtime error '800a0009'

Subscript out of range: 'True'

/Featured.asp, line 28

on this code:

View Replies View Related

Response.Buffer Set TO True

If response.buffer is set to true, and no response.flush has been executed, is it accurate to expect that my browser should not be rendering the content which I (well Ok, someone else) is sending in response.write statements?

View Replies View Related

Isnumeric Return True

why does isnumeric return true?

a=""
if isnumeric(a) then
response.write("test")
end if

empty isnt numerical is it?

View Replies View Related

Evaluate RegExp To True.

How do I evaluate a RegExp to true or false? Like I want to know if the value is correct or not using this snippet. Code:

View Replies View Related

Either BOF Or EOF Is True, Or The Current Record Has Been Deleted.

I am struggling with opening a database and reading data from it via SQL. Please tell me what is wrong with this code. I am trying to open up different tables and get information from them and put it on the one page. Code:

View Replies View Related

Either BOF Or EOF Is True, Or The Current Record Has Been Deleted

ADODB.Field (0x800A0BCD)

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

This is the error I recieve when trying to run my site. I know why. I am passing a non existed URL Parameter. However I would like to recieve a MsgBox that says that such record doesn't exist. Code:

View Replies View Related

Either BOF Or EOF Is True, Or The Current Record Has Been Deleted

It says I have 8 records but is not displaying them.

Error:
ADODB.Fielderror '800a0bcd'

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. /deleteevent.asp, line 33 Code:

View Replies View Related

Either BOF Or EOF Is True, Or The Current Record Has Been Deleted

I have several pages I set up in my web site and I am having trouble with two of them - search and results. The stat_search uses a form which seems to work right and when I test the recordset on the stat_results page and enter a value it returns the right results.

When a value is entered from the stat_search page the results page displays the records with the right value and the Records _ of _ indicates the right number of records but when I use the Next or Last arrows to move to the next record I receive the ADODB.Field error. Code:

View Replies View Related

Either BOF Or EOF Is True, Or The Current Record Has Been Deleted

Howcome it doesn't work?

ADODB.Fielderror '80020009'

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. /gemetria/kjvresp3.asp, line 0

It was working before!!! Code:

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved