Create A Form In Which Need To Ask 10 Questions From Users

Apr 30, 2009

i nees a scriopt to create a form in which i need to ask 10 questions from users. each question will have two answers. yes or no (radio button). visitor will have to select either yes or no. no question can be left unanswered. above question answers (in same form), there will be data field for user where he will submit his
name, email, ph, address etc. after submitting all fields, visitor will submit. now following will happen.

a. a unique id will be created to be associated with this form
b. his data will be emailed to one email or two emails
c. in next screen, he will see his unique id alongwith results of his questions and answers
d. if he replied all questions as yes, he will be passed
e. if he replied no (even to a single question), he will be failed

View 1 Replies


ADVERTISEMENT

Form For Users To Create Events - Populate Select Fields

Jun 3, 2009

I'd like some direction on creating a small piece of Javascript that will populate my <select> boxes. Basically, I have a form for users to create events, with a start time and an end time. (These are the two select boxes). For example:

Code:
<select id="startTime">
<option value="12:00AM">12:00AM</option>
<option value="12:15AM">12:15AM</option>
etc.....
</select>

What I am trying to do is:
1) Have times populated in 15 minute incrementals from 12:00AM to 11:45PM
2) Have some type of "error checking" available to where the End Time must be after the start time. It would be nice for the script to automatically change the end time field to a time that is after the start time.

View 3 Replies View Related

Form Questions

Jul 20, 2005

I would, first, like to know, when someone hits a submit button and a form
is sent, how could you get that form sent as text instead of an attachment?
And second, how do you get the user to be able to browse for an image on
his/her computer and load it to a form?

View 4 Replies View Related

Two JS Questions In One: Giving Focus, And Clearing Form (read Inside)

Jul 23, 2005

Okay, how do I write a page with a form so that when I click Submit,
the following happens?

1. The data is submitted (of course)
2. The form is cleared (what I've tried results in the form being
cleared first, resulting in an empty submission), and
3. The cursor goes back to the start of the form, ready for more input
(kind of like how Google puts the cursor in the search box at the
start).

I can't seem to find the answer, and I've been looking on the net for a
few hours already.

View 2 Replies View Related

JQuery :: Hide And Reveal Questions In Form, Multiple If Values?

Jan 9, 2012

Attempting my first bit of JQuery, looking to hide or reveal questions in a form based on the value selected from a drop down list.i.e. select1

"1" Red
"2" Blue
"3" Yellow

I'm following an example where a single value is matched, i.e. if 1 selected reveal question
$(document).ready(function(){

View 2 Replies View Related

Create A Way For Users To Download Code Dynamically From Webpage Via A File Download?

Oct 2, 2011

I am trying to create a way for my users to download some code dynamically from my web page via a file download. Below is the code that i have written so far. It seems to be dying on the iframe but i'm not sure why.

Here is my jquery trigger which is inside my onreadystate function.

$('#export_txt').click(function(e){
alert(LPAjax.ajaxurl + "/download.php");
$.generateFile({
action: "download_txt",
filename: "exportme.txt",

[Code]...

View 1 Replies View Related

How To Prevent Form Submission If Users Hit Enter.

Jul 20, 2005

In my Web Form I have more than one Textbox for user input. If I hit
enter to any Textbox its submitting the form. How can I prevent Form
submission if users hit enter to the textbox? I want to submit the
form only when user will hit submit button.

View 2 Replies View Related

JQuery :: Replace Form Select Of Large List Of Users?

Mar 27, 2011

I've been told that jQuery can do this.

Simple form which includes a drop down list of users obtained from a database which is displayed using a form select entry with options for each entry. problem is, the list can be quite long, upwards of several hundred.

In PHP, I added a filter box (text box) which the visitor can enter in a substring that is then used to obtain and display only matching entries. Works great, but it needs to reload the page to do its thing.

I've been told that jQuery can be used to do the same thing without having to reload the whole page.

The filter box would be used to call an existing PHP script which obtains the names based on the filtered string. I can change this script to output the data in any format necessary including raw format to full option formatted strings.

how to set this up so that it gets called and replaces the current option content.

Attachments
select01.png
Size : 2.99 KB
Download : 272

View 1 Replies View Related

Query :: Get String And Email The Sting Upon Users Submitting Form

May 21, 2009

Goal: get query string and email the sting upon users submitting form. Reason: To know what marketing ad unit the user can from Details. I need to get a query sting from the url (ex. example.htm?id=22e&moreid=99lk) and store the stings as vars and be able to pass these vars from page to page (hidden from the user) and when the user gets to a registration form and submits the form, the vars get attached to the email that is sent to me, so I know where they came from.

View 3 Replies View Related

Provide Users With Help Regarding The Form Input Areas With A Help Popup Dialog Box?

Sep 25, 2010

I'd like to provide users with help regarding the form input areas with a help popup dialog box. I don't like the term popup because so many people block popups. I'll be providing a question mark next to the feature and if clicked would like a customizable dialog box to show with help text. There will be many of these involved and would like to know the best approach.

View 3 Replies View Related

Focus Questions

Jul 23, 2005

is there any way I can get what field has focus in the form? I would
like to trap the "backspace" only if focus is on spesific field.

View 3 Replies View Related

Runtime Error Questions

Jul 20, 2005

I am using this browser that came with an sbcglobal account and when
I click on the built in "shopping" button (and others), sometimes i get
a jscript runtime error. It happens often but not always. It is very
annoying. When I launch the debugger I don't know what i am looking at.

My question is. Is there anything I can do to stop this from popping
up? Or is this caused by the source from the site?

Is Javascript build in to the browser or is there someway i could update
it. Would that help?

Would using a different browser help? I think this is sbcglobals own
browser but it might be based on IE.

View 4 Replies View Related

Java Script Memory Management Questions

Jul 20, 2005

I'm trying to find out how JavaScript manages its memory. In
particular when using the 'new' operator to create an object is it
necessary to explicitly delete this object (before it moves out of scope,
like c++) or does JavaScript clean this up automatically?

What about string varaible which uses concatenation extensively?

View 1 Replies View Related

Randomize A Pushed Array With Questions And Answers Together

Feb 13, 2011

I know how to randomize an array but how do I randomize the array below and keep the questions and answers together.

Code:

View 14 Replies View Related

Multiple Validations - Check To Make Sure All Questions Have Been Answered Upon Clicking Submit

Apr 17, 2009

I have a form script that is made up of Text boxes, radio buttons, and drop down boxes. What I am wanting to happen is upon clicking submit at bottom of form, it should run a check to make sure all questions have been answered. So far it catches all the text boxes, but it's not catching the radio buttons or drop down boxes.. I have all of this under 1 form name ( is this where my problem is located? do I need to seperate into different form names based on type?) I am not wanting the answer given too me ( at least not yet ). I have done a search for multiple types of validation. But nothing seemed to clcik... Also Do I need another validation set up point for the Month, Date, year Drop down boxes?

[Code]...

View 4 Replies View Related

Questions About Memory Structure Of Value Types And Reference Types

Oct 12, 2006

JavaScript hides its memory structure.
I know that numbers, booleans, null and undefined are value types
(value is directed saved in a variable).

I want to know:

- How JavaScript distinguishes value types from reference types by
seeing the variable content?

- How many bytes are allocated in memory when I declare the following?
var i;

I can program in JavaScript without understanding them.
But I'm curious.

View 12 Replies View Related

Create A Form And Validate It?

Dec 6, 2011

I am trying to create a form and validate it so that when the user enters their details, it doesn't let them confirm if the details are not filled out or incorrect. I am trying to use document.getElementById and labels, so instead of alerts appearing, a label appears next to the field that is required. I also am trying to validate the email to make sure the '@' and the '.' is in the right place.

View 3 Replies View Related

Create A Checkbox On A Form?

Dec 12, 2011

I want to create a checkbox on a form that, when checked, will display a text field for someone to enter text into. If the box isn't checked, though, the text field should not be displayed.

How do I do this?

Oh also, it will probably use document.getElementByID(), because that is what we're learning about

View 8 Replies View Related

Create Some Amendments Within Some Form Fields?

Feb 13, 2009

Im trying to create some amendments within some form fields as the files that need to be adjusted in the php scipts are encrypted. so im forced to use a work around. I'll explane best what i want to do via the very simple php script below.first the form fields (all field names are related to there php objects)

----------------------
<--! this is the "title" field -->
<td><input type="text" name="title" style="width: 100%" value="we are her" /></td>[code]....

how could i have the same disired effect in Javascript or maybe theres another solution?

View 1 Replies View Related

Dynamically Create Form Element?

Nov 7, 2009

Can someone see what is wrong with this code:

frm=document.createElement('form')
frm.action="/cgi-sys/formmail.pl"
frm.method="POST"

[code]...

View 7 Replies View Related

How To Create A Working Contact Form

Mar 16, 2011

though I am quite an advanced and experienced VB& .NET programmer, I am totally new to Jscript coding, (I don't actually code Jscript) but I build websites all the same too. I am also new here.I am working on a website and I really wish to incorporate a contact or an order form to it so that when the user fills in the fields and clicks send, I receive the data in my email.

View 2 Replies View Related

Create A Form Validation Process

Jan 26, 2006

I am using the following code to create a form validation process. Code:

View 3 Replies View Related

Create Dynamic Form Using Script?

Nov 19, 2009

I want to create a dynamic form using javascript, where i can click a button to add some new fields. i tried to search it in google, and i tried to use it. but it doesn't work in Mozilla and gave error warning in IE. in creating that dynamic form, or maybe you can give me some links that give explanation about that.

View 3 Replies View Related

JAVA :: Create Feedback Form?

Mar 19, 2010

i want to create a feedback form for my website [url snipped]. as i m using free host it doesnt allow PHP so i want to create it using JAVA. please help me create a feedback form which when submitted automatically send an email to my ID.

View 3 Replies View Related

Create A Drop-down Menu In A Form

Apr 28, 2009

I am trying to find out how to create a drop-down menu in a form that when for example "Option 1" is selected a second drop-down menu appears with further options that are specific to the first option. For example;

View 2 Replies View Related

How Create Dynamic Form And Submit?

Mar 1, 2005

I want to create a form dynamically and submit it, however when I call the paypalSubmit function nothing happens, got any idea?

What I want to do is create a form in javascipt, populate it with some hidden input, open a window and use the new window to submit the values. here is my code:

View 5 Replies View Related







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