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 Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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:
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...
Display Results
what I need is to dysplay only the first say 10 results and then have a link 'next' and dysplay 10 more in a new page result result result result ... next I can create a var and add 1 more for each result, till 10� end then create the link, but i don't now how to start the new page from the 11� result.
Search Two Tables And Display Results
I have two tables like this: TapeRecords TapeID - Integer Primary key Title - Text TapeDetails RecordId (Primary Key) TapeId (related to the taperecords table) ProgramDetails (Text) The tape details table has a record of the programs that are stored on each tape and each tape we have about 20 programs. What i want my users it to allow them to search by programdetails and display the list of tapes that match that search. I am not able to built a query to search and display at the same time.
Formatting Time Display From DB Results
I've got a date/time field in the format "9/2/2007 8:00:00 PM" that I'm pulling from my db as part of a query. My problem is every once in a while I get a time that is 00:00:00 AM (right at midnight) and then my results display only the date with the time blank because it was all 0's. Is there a way I can force it to show the time even when its midnight?
Form Values With A File - Passing Values
I want to call a recordset so you can edit the details and then obviously pass the parameters onwards into the db. However, the user guide just says this: To process other fields in the form, use the Form collection of the upload object the same way you would use the Form collection of the Request object. For example, if your form had a text element named UserName, your processing code would include: Code:
How To Retrieve Form Values, When Form Elements' Names Are (almost) Unknown?
I have a form that is dynamically generated since it is populated with values retrieved from a database. The form can of course also be submitted, which is where I run into some problems. Since I never know in advance what the length of the form (or for that matter what the different elements' names and values) will be I don't know how to write the code in "receive.asp" to retrieve all values from the form correctly without excess use of "request.....". I shouldn't have to write requests for every single potential element name that is stored in the DB. Please note that the form can sometimes also contain radio buttons and check boxes, even though they are not present in this short example Code:
Form Results
I have programmed several online forms(typically using cgi).A client of mine does not like how the results are formated (the long column of text)Is there anything I can do to program the results of this online form to get put into another format that would be e-mailed to the receipient?
Form Results
Is there a way to grab all the results from the querystring which are sent via a form submit? In PHP, you can just do something like $var = _GET; which will grab all the fields on the querystring.
Web Form Results
I created an html form in which the results will be emailed. Right now the results are able to be emailed in text format. however, i need to somehow parse the information in to html format. this is so that the person that will be the one receiving the results will be able to process the forms without having to reinput any information into the actual form for filing purposes.
How To Access Variables (form Text Box Values) On Same Form?
I have a form on an ASP page that has 5 text boxes, for data entry. I am trying to get data from the text box, and pass it to a hidden text box on the form. The hidden text box is called "MyDateTime" (a SQL date and time value). I am attempting to concatenate data from two other textboxes (one for date and one for time) to give a string like : "8/8/2004 8:00 AM" I am trying to use the following: Code:
Email ASP Form Results
The first page you come to in my Web application is default.asp. This gives the user the ability to click on a drop down menu and choose a prior date ( to update or add info) or they may simply choose to add a new date and info. They click on submit and it sends the info to the database and opens up another page called updateproduction.asp. This page shows the results from default.asp plus other calculations. I have a button on updateproduction.asp that says "Send Email". When I click on that I want the user to be able to send a copy of the updateproduction.asp page to several email accounts. I currently have tried using CDONTS and can click on the "Send Email" button to send a test email with html (Simply "You have sent a successful email" in the body) with success. If I can't send the asp page, is there a way to save the asp page to an htm page in the code? This would allow me to send a link out to everyone instead of the actual page.
How To Email ID # With Form Results
I have an asp form. The results of the form both populate a database (thus generating a unique id #) and also get emailed. I now need to send the unique id in the email. How do I do this if the id is being created concurrently with the email? Code:
Emailing Form Results
I was wondering, is it possible to send the results of a web form through email instead of storing it in a database ? would it be done it such a way Code: <form ACTION="mailto:aymenz@company.com" METHOD="POST" ENCRYPE="text/html"> also can i use both: store in the database and email the results of this webform to 2 reciptients, the buyer and the seller
Form Results In Query
How can I get this line to work? I am trying to get the results entered in a form to be part of my query. I am able to get the form results but I get a error stating Syntax error (missing operator) in query expression 'Assignee = Tom Jones'.Below is the line where the error occurs Session("dbWhere") = "Assignee = " & Request.Form("assignsearch")
Emailing Form Results
I have a form with two textfields. When the user hits the submit buttom I want the server to email me the results from the textfieds. Can anyone help me with this?
Posting Form Results
I am trying to post the results of one form to another target .asp page - I do not know how to write the code. I have ran through tutorials etc., and my ISS 5 documentation - basically this is what I am coming up with. Please confirm if this is correct code used on the target page - the page that rcieves the form results. <form action="CSSI-CMS2.asp" method="GET" enctype="multipart/form-data" name="e-design"> <% Response.Write(objItem & " = " & Request.Form(objItem) & "<br>") Next %> </form>
Using CDOSYS To Email Form Results
Can someone please tell me if its possible to create an instance of CDOSYS (to send an emails) on one host and have the email sent from another host.. or are there obvious gaps in my understanding of what takes place when one tries to send an email using CDOSYS or CDONTS?
Using ASP.NET To Send Form Results To An Email
I have 2 part question: I have an html form: https://ws13.ipowerweb.com/eoscorg/pre-op_form.htm I created that has to have SSL on it. The form also includes a confirmation page to the user after the submit button is hit. However, I have been informed because I used Front Page to create the form, the SSL doesn't work with Front Page's form handler. So I want to know if I can use ASP.NET to create the form and without any conflicts with SSL? Also, I want to find out if all the form objects (form fields, text box fields) have to be coded as ASP.NET objects or can I keep the html form objects and just use ASP.NET code to send the form to an email address and to then send the confirmation page to the user? In other words do I have use ASP.NET code for the whole form?
Format Email Form Results
Code: Mail.Subject = "Website - Account" strEmailText = strEmailText & "Company Name: " & Request.Form("compname") & vbCrLf strEmailText = strEmailText & "Company Address: " & Request.Form("compadd") & vbCrLf strEmailText = strEmailText & "Business Nature: " & Request.Form("businessnature") & vbCrLf i would just like to know how i can add bold/underline and line breaks in this email because at the moment it just displays the email like this.. this: this thing this: this thing... etc
Sending Email With Values Form A Form
<%@Language=VBScript %> <%option explicit%> <% MESSAGE = (Request.Form("type")) MESSAGE=MESSAGE & vbcrlf & "Name" & (Request.Form("name")) MESSAGE=MESSAGE & vbcrlf & (Request.Form("address")) MESSAGE=MESSAGE & vbcrlf & (Request.Form("handphone")) MESSAGE=MESSAGE & vbcrlf & (Request.Form("phonenumber")) MESSAGE=MESSAGE & vbcrlf & vbcrlf & (Request.Form("comments")) MESSAGE=MESSAGE & vbcrlf & vbcrlf MESSAGE=MESSAGE & "____________________________________________" Set objMail = Server.CreateObject("CDONTS.NewMail") objMail.From =Request.Form(email) objMail.To = "icepricessa@hotmail.com" objMail.Subject = "Business/Career Enquiries" objMail.Body = ""&MESSAGE&"" objMail.Send Set objMail = Nothing %> but somehow i'm not able to send the mail....
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.
Processing & Emailing HTML Form Results
I have created a form in HTML with no problems, but I can't find any tutorials on how to (or whether I even can) have the results of what the user inputted into the form directly to me. I would also like to be able to have the results stored in an Excel Spreadsheet as well. I've found tutorials on how to send to addresses inputted into the form, kind of like a 'Thanks for Participating' sort of thing and I've tried to modify it to get it to work for sending me messages, but I just can't get it to work.
Loop Form - Extract Display 'value' As Well As Form Value?
While I can extract the option value from the following: <Select name='Keystring' MULTIPLE> <option value='1' name='status'>Pending</option> ..... </select> I cannot seem to extract the corresponding 'display' value when I do a For...Next Loop: for each keystring in Request.Form("Keystring") keystring=request("keystring") Next How do I aslo get hold of that 'display' value eg 'Pending'...is it possible?
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
Create Table With Username And Write To It With Results From Form
I have an asp page that gives results for a search from a previous page from streetguide.streets in MySql. The page displays the UserName of the person logged in. I have the results of this query displayed inside a form with hidden variables. When the user clicks "save to my folder" I want it to create a table in the mysql db with the same name as the user name, and then write to this table. I have it working if I created the table beforehand, but I want the table to be created dynamically upon form submission with the table name to match the persons user name.
Form Setup To Send The Results To An Email Address
I have a webpage with ASP that is a form. I have the form setup to send the results to an email address (using the Frontpage feature). We have published the page to the web, but it will not send email. It simply does nothing. This is the code: <form name="Datasheet" method="POST" action="DataSheet.asp" webbot-action="--WEBBOT-SELF--"> <!--webbot bot="SaveResults" S-Email-Format="TEXT/PRE" S-Email-Address="ray.clark@721-file.com" B-Email-Label-Fields="TRUE" S-Builtin-Fields startspan -->
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
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 .
Form Processing Script: Results In HTML Mail Format?
I have purchased a form processing script, which basically saves the data into a database, emails certain people's email addresses with the form results, and also sends an email to the user that filled in the form with a thank you email. However, all the emails are being sent in plain text format. I would like to change this to HTML so I can make the results look nicer and also make the thank you email look nicer. I have emailed the script developers, but have yet had a response from them, so i thought id put a post on here! I have found the part of the coding that sends the Thank You email out to the user once they have filled in the form: '/// Send Autoresponse if replyto<>"" and (autoresponse<>"" or sendcopy<>"") then if sendcopy<>"" then autoresponse=autoresponse & vbcrlf & vbcrlf & message call sendmail(replyto,mailadmin,formname,autoresponse) end if end if .......
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.
Not Getting Form Values
I have the following line of code in my asp page: Dim ix For ix = 1 to Request.Form.Count fieldName = Request.Form.Key(ix) fieldValue = Request.Form.Item(ix) Response.Write fieldName Response.Write fieldValue & Next Response.End It is not returning the results of any field on the previous form page. Does anyone know what I might look for?
Form Values Going Missing
we have a web system whena user submits a form, it's take to a page... if the user didn't fill in a particular form properly then resulting page tells them so. they then go back and fill in the remaining fields.this works for all but 1 user whose values disppear totally, having to do it all again.has he got his computer set up differently?
Retaining Form Values
I have created a asp page "AddUsers.asp" which allows the admin to create new user ids.The admin fills in all relevant details and clicks on submit.The form gets posted to a page "Insertusers.asp" which checks if the new entered userid already exists in a database. If the userid already exists, page display a message saying "Userid already exists" and a back button(link to Addusers.asp).When the admin clicks on back button, it takes him to Addusers.asp and all the relevant details entered in a form are lost.Again he has to fill in all the details which i want to avoid.How can i retain the values entered in the form so that the admin can change only the userid and submit the form again?
Missing Form Values
I have a problem where form values go missing. The are several forms on one page with indivdual names (i.e. form1, form2) but with the same fields. Whenever the form is submitted via post the values disappear. It only happens on this one particular page. The odd thing is that if I do a response.write with the variable and then a response.end write after it it shows up perfectly. The page is just a basic record update page. If I do a response.flush() it works as well (up until the redirect). I am leaning towards a response buffer problem but still don't understand why it is happening.
Fetching Form Values
I came up with the new problem. I want to fetch all form values by using request.form("FormName") which is generated by javascript on runtime. The attached zip code contains the working code of javascript creating dynamic form elements. So after generating a couple of textboxes when I click on the "Submit" button it should display all the values entered in the textboxes on the next page.
Displaying Form Values
I am trying to create a page that displays the values the user has just selected from my form. The form consists of three drop down lists. Upon clicking the submit button, I would like to go to a new page that says something along these lines: "Thank you for filling out the form. You have successfully transfered account _____ (value from one drop down) from ______ (another value) to ________ (the last value)." How would i go about doing something like this?
Write Form Values
Does anyone have the code to write all the form values to variables of the same name. So for example request.form("myname") would be stored in a variable called myname after running this. It should just save time from doing the request for all the fields.
Save All Values From A Form
Is it possible to save all the names/values of a form to another memo textfield before a Insert to the database then when required on another page split that memo textfield into the name and their corresponding values retrieved from the recordset ?
Dynamic Form Values
If I have say 10 fixed variables, how can I set their values = to that of a form that is built dynamically? column1column2 email=formvalue(0) fname=formvalue(1) lname=formvalue(2) etc.. lastvar=formvalue(9)
Storing Form Values
Is there a way to store a form value that can be passed across multiple pages, other than creating a session variable for the form value? Can an array be created to hold form values and maintained and used across many pages? Or, other alternatives? I've used session variables, but have understood that using many session variables isn't good and there would be a better method to handle this?
Checking Form Values
Is there an easy way in ASP to check the value of a form element, like a hidden field, of the current page, not the previous page?
Pass Values In Form
I have created a form. I have a log in page and a view registration page. When a user logs in I have to display only their information on the registration page. But when an admin logs in... they can view all the records in the database. I am not sure how to do this. Can anyone help me? I have included that code that I have now. Right now...when the users log in they see everythings. Code:
Adding Values From A Submitted Form
I am trying to total the value of some form fields I am referecing the form field with an inner loop, I am having a little trouble because the amount of fields returned is always different, how can I roll-up the total of the form fields (request.form("subtotal_"& i)) to get one final figure? Code:
Passing Values For Email Form
Lets say I have a page with 6 different options a user can select, each linking to a registration form. Regardless of what the user picks, they will fill out the same form. The only difference is the title of the Email sent. To avoid having a seperate form page for each option, is there a way to pass a value and put it into the Subject title of the email depending on which link they click?
Get Hidden Form Values From Another Web Page
I received the following bit of code from a friend in need of help. I've done all I can do so far and need assistance with the rest. This code is supposed to get a web page and grab the necessary info from it so it can be used. After the page is grabbed I need to grab the values of 3 "hidden" input fields in a form. The fields look like this: <INPUT TYPE="HIDDEN" NAME="VARIABLE1" VALUE="CD5E56C4E89CFBE470D8B098C6897BABB6C037FD784765B0"> <INPUT TYPE="HIDDEN" NAME="VARIABLE2" VALUE="CD5E56C4E89CFBE4B1B8B011899A4B44CCC7B734481F19ED67745C61F9EF16D0"> <INPUT TYPE="HIDDEN" NAME="VARIABLE3" VALUE="D8F1A38F99B9320B"> The code I have looks like this. I need help getting started on how to search thru the retrieved web page to get the above values. If someone knows of better code than what I have so far please feel free to enlighten me with it. Code:
|