kvarnerexpress
Mar 17 2006, 09:18 PM
| | I have a timesheet type form that has 40 different row - each row has two dropdowns, one for a project and one for a task, and a dropdown box for each day of the week. Once a project and task has been selected, hours spent on that task each day of the week are entered into the text boxes.
What I would ideally like to do is, before I send this page for processing on my asp page (which involves saving the data back to the database), I'd like to check whether or not the user has entered the same project/task combination on multiple rows.....the dropdowns on each row are named project1-project40, task1-task40, mon1-mon40 etc.
I'm using VBScript for the server side scripting, but I'll happily incorporate a section of Javascript code if that will offer me a simpler solution.
Any ideas or suggestions are more than welcome here!
|
Reply
Unregistered 015
Mar 17 2006, 11:49 PM
here is the pseudocode, you do the implementation: for i from 0 to 40 do { no.of.matches=0; for j from 0 to 40 do { compare project/task[i] to project/task[j] if it is a match increase no.of.matches for 1 } } if no.of.matches>40 report error //only compared to ifself sorry, can't do any better, I forgot a lot of those things, since I do someting else now. I hope you can get something out of this...
Reply
Inspiron
Mar 18 2006, 06:22 AM
Hey kvarnerexpress, I guess we'll get a clearer picture of what you are trying to ask for when you post your codes as well. Because there's different methods of doing, having your codes as reference will solve your problem faster. Your task should be rather simple to validate with just Javascript. I may be able to help you if you provide the codes of your work. QUOTE(ciroxyz @ Mar 18 2006, 07:49 AM)  for i from 0 to 40 do { no.of.matches=0; for j from 0 to 40 do { compare project/task[i] to project/task[j] if it is a match increase no.of.matches for 1 } }
Firstly, please place your codes in the [-CODE-] [-/CODE-] tags. Secondly, you codes seemed pretty weird. Or is it actually not a code?
Reply
Similar Topics
Keywords : form, validation
- Form Not Returning Correct Email Address
(5)
Brand New Motherboard Form Factor Coming Out?
a new form factor standard could be upon us (2) So it looks like the ATX form factor is going to to be replaced. The new form factor is called the
BTX. BTX stands for Balanced Technology Extended. Newegg doesn't even carry them yet. The board
is completly square, which simplifies intallation to the case. The BTX has all slotted connections
(PCI, RAM, PCIe, etc.) aligned parallel to each other increasing airflow. Because eveything is
inline, the BTX form factor has the ability for multiple PC componants to share a single fan (cross
flow fans). All I know is I want it. On a side note, the 45nm Manufactoring Tech....
Updating Php File Through A Web Form
(5) Hello, i'm not sure if this can be done with php or not but what i need is a way to make an php
file that have an html form on it and it will take the info you put in to that form and write it to
an existing php file, for example: if i have the file news.php and the file news_update.php. if you
went to news_update.php you would get an form with a text area for you to write a new addition for
the news.php file and when you hit submit it will add what you typed in the form to the file
news.php. If this is going to be a big code or a hard one to make but some one think....
I Liked This Form Builder
It also uses Ajax (4) www.wufoo.com The form builder is unbelievably easy to use. I made a form in like 20 seconds. The
functionality is good ( though pros could probably make a better form that would suit them, this one
is good for newbies. ) All you have to do is drag and drop some modules and your form is ready.
Now for the cons : You are only allowed to make 3 forms and the limitation of 100 entries per form.
So technically this is not completely free, but it is good if you need a cool looking
form in a jiffy. Its ....
Controlling Differents Keypresses In A Single Form
(0) if there are more than 1 button in a form, how can i control each button by different key presses. i
tried accesskey, but in that we need to press alt+some key for the desired output. i want to control
the buttons with a single key press. how can i do that plz do help me. im working wid j2ee. i want
to create a web application....
Php Ftp Upload Form
Adding User Directory to PHP Upload Form - Help (0) Alright I am trying to have a PHP FTP Upload Form that allows the user to create the directory
folder for where they want to upload there files to. example: Main Directory: vainsoft.com There
directory: vainsoft.com/modeling or vainsoft.com/photography But I dont want them to be able to
upload things into the main directory, only sub-directories, is that possible with this coding that
I have: //uses $_FILES global array //see manual for older PHP version info //This
function will be used to get the extension from the filename function get_extension($fi....
Add A Javascript Feedback Form On Your Web Page
This is how to do it (6) So i was looking for a feedback form in javascript and i couldn't find one so ive made one for
you guys here we go! So this feedback form will ask for name, emails address and their comments
First of all add this code in between the and tags CODE <script
name="JavaScript"> <!-- function SendEmail() { var toaddy =
'name@domain.com'; var subject = 'JS Form Submission'; var mailer =
'mailto:' + toaddy + '?subject=' + subject + '&body=' +
'Name%20is\....
Best Way To Protect Html Form Fields
Looking for suggestions on how to protect form fields during user inpu (3) My working example is here http://sonesay.trap17.com/application.php The form submits to itself
and stores what ever the user inputs into session variables. Thats all fine and I have validation
checks for it, I wanted to add more and I remember comming across a site where they would lock from
fields to prevent any changes if the information was already supplied and validated. I'm looking
to build something similar but cant seem to figure out how to get that same effect at this time.
Heres my program logic so far application.php includes('application_content.....
Php Email Validation
A PHP data validation class with many functions (1) I've been reading through my old php book (PHP 4.1) and came across this data validation class.
It can check a number of things ranging from telephone numbers , credit card number formats, email
address and some others. I checked out some of the methods although I didnt expect it to work 100%
because I've found source code errors thoughout the book and CD. I tested out a few of the
methods to check and some of them did return expected results but some didnt either so the data
validation class was not perfect and it didnt really bother me. The cool thing I found....
Html Application Form
(6) does anyone know how to make a form/application that when you submit the form with the submit but it
sends it in a email to you email address if anyone on here knows please please let me know thanks, i
want this so i can have members apply for a team on my football site and there information will come
back to me and i can accept or reject them for that job....
Free Hosting Request Form [denied]
(1) PRESENT CREDITS : Forum Username : Black_d0s Display Username: madlinux Email Address:
register.madlinux@gmail.com My request is for: HOSTING PACKAGE 1 Your Registered Domain Name or
Desired Trap17 Subdomain Name: crew.trap17.com Introduce Yourself: Your hobbies, interests,
talents, etc. Let the forum know you better. • Hi, my name is Jesse. The website i want to start is
a community website like myspace or something of that sort . my intrests are running websites, i
also make my own programs i am good with c++,html,linux,unix,freebsd pretty much anything.my hobbi....
Free Hosting Request Form [denied]
(1) PRESENT CREDITS : Forum Username : Black_d0s Display Username: madlinux Email Address:
register.madlinux@gmail.com My request is for: HOSTING PACKAGE 1 Your Registered Domain Name or
Desired Trap17 Subdomain Name: crew.trap17.com Introduce Yourself: Your hobbies, interests,
talents, etc. Let the forum know you better. • Hi, my name is Jesse. The website i want to
start is a community website like myspace or something of that sort . my intrests are running
websites, i also make my own programs i am good with c++,html,linux,unix,freebsd pretty much
anything.m....
Whats The Best Form Of Karate For Fitness/defence?
(2) Hi all, i went karate once for about month or two then left because my step brother annoyed me.. Now
a few years later i want to go again, i picked up a leaflet and it had several different forms of
karate listed on it and i want to know which one is best for either fitness or self defence so i can
make my mind up! Ideally im looking for a form that will offer me fitness, as im definitely not
in shape! But also one that gives me practical self defence skills that, if the need arose, i
could use on the street to defend me or my friends who dont go karate with me. ....
My Idea For A Form Of Government
Eleutherionism (24) I call it Eleutherionism, which is based off of the Ancient Greek word for freedom. It's fairly
similar to socialism, but also vastly different. Here is the basic idea for it: Eleutherionism is
an interesting concept. It's based off of socialism, but it gives the citizen much more freedom.
In socialism, everyone is paid the same thing for working different jobs. I want to expand on that
concept. Different jobs will have different wages, increasing based on popularity, difficulty, and
talent required. In order to get a certain job, you must study (after you grad....
Username Validation With Php
(1) A simple method of validation. This is good if you dont want spaces between caracters: form.php
CODE <FORM action="vali.php" method="post"> <P>
<LABEL for="user">User name: </LABEL> <INPUT
type="text" id="user"><BR> <INPUT type="submit"
value="Send"> </P> </FORM> vali.php CODE <?php
$user =$_POST['user']; $cuser=0; for($i=0;
$i<strlen($u....
Email Form Code
(8) I want to create my own e-mail form for my site and I don't quite know if JavaScript or PHP is
required. I use my Nintendo Wii to manage my sites so I only can use what my webhost allows. I am
using Angelfire for my main site and InvisionPlus for my forums. I'm planning on switching to
Trap17 for my main site. Well here is my current code. Please tell me what I need to change.
Message ....
Contact Form Actionscript
help needed (3) please I need help for an ActionScript to use for the contact form in a flash website I'm using
Flash MX 2004.......
Wordpress Contact Form That Work With Free Web Hosts
(1) Hi there, I had a bit of trouble setting up the wp-contact-form plugin for my wordpress blog that
was hosted by freehostia. At first I was using the free package, so I couldn't send out any
mail. I solved that by saving all messages to a directory, and password protecting it. When I
updated to a payed package, I still couldn't send out any mail. It turned out that the From
header had to be an existing email that I had registered with my freehostia account, and
wp-contact-form used "From: " I solved that by modifying the plugin, changing From to the
administrat....
App Form Site Help
(1) I want to create an application form on my site with an auto responder. I have made the form with a
processor from www.response-o-matic.com I really have no idea how to or where to paste this html
code on my hosted site which is with qupis. How many credits do I need to activate my hosted site
and how do I do this? Im not sure how all this works im very new to this but am willing to
learn! Can anyone help me!! Thanks in advance....
How To Insert Post Information Without A Form
How to insert post information without a form (1) I am relatively new with web design so I don't even know exactly what to ask here, but this
can't be as hard as I am making it. I am a merchant and I want to pass just a few simple
strings to the credit card processor: my merchant ID and pin, as well as a price and a few other
simple variables. I want the merchant ID and pin to be invisible to the user. ....
Application For Webspace [screened] [approved]
Application Form (2) To generate an application for free web hosting please click here: Free Web Hosting
Request Form I would like to request free web hosting from Trap17. Please find my application
below. Your Registered Domain Name or Desired Trap17 Subdomain Name: powerdriveradio.com
Account Username: mandla Introduction: My name is Dj Stone and I have been playin
mobile disco and on lots of internet radios as a play by play announcer. I believe I can broadcast
to my listeners on a more intellectual level if I have full control and my listen....
Configure The Display Of An Email Via Form Mailer
(1) I set up an form mailer which emails data to a company that a customer fills out, that works fine.
What I want is change the way the email looks so it's not so plain ex: change the size and
color of fonts of the data, add background color, add company logo.... below is the code I wrote
that emails customers data, from, to, subject info: CODE <?php //start building the mail
string $msg .="A free estimate has been requested from
www.mywebsite.com\n\n"; $msg2 .="Thank you for requesting a free estimate. A
specialist will cont....
Which Art Form Would You Like Better?
Explosive Legend vs. Aging Classic (2) Hi guys. I was inspired by something I've read about Akatsuki members Deidara and Sasori.
Suppose you were presented two forms of art. (Let's limit ourselves first to visual art and
aural art, that is, music) One is an acutely awe-inspiring vision or song that you'll never see
or hear ever again for the rest of your life. Needless to say, it is something you will treasure in
your memory as long as you live. It is meant to die so soon, only to live on as a legend. It is
something like war, for example, the way veteran soldiers would recline in their chair a....
Validation Script - Detecting Illegal Characters
preg_match to find illegal characters (0) I'm trying to validate a user's desired username for a registration page. I want to detect
any illegal characters being used for a username. So far i have managed to include most execpt the
'\', the '\' is used for escape and treating the preceding characters
literally. I try to do '\\' but i get an error because it execects another
character. CODE $ck_result = "Default"; $pattern =
"/[!|@|#|$|%|^|&|*|(|)|_|\-|=|+|\||,|.|\/|;|:|\'
;|\"|....
How To Send Form To To Email?
(1) Hi all, How to send From data to email id by using JavaScript? For example in the HTML from
contains Name,Email,Phone no filesds...... On Click submit button these all fileds text comes to
given mail id? I'm using this one but it goes to local System A/C i.e OutlookExpress. HTML
form action =" mailto:ur@gomain.com ">.................... /form > if any Please send mail
to me thanks Always use the proper bbcode tag. ....
What Is A Computer Form Factor
(0) As I began my hardware class in school I knew I was going to be learning some new stuff about a
computer that I never really thought about besides the fact I use one. Hopefully what I talk about
in this topic will help people get a better understanding of computer hardware, especially when
might want to build one by scratch. The form factor is used to determine what power supply,
computer cases and motherboards you can use when building a fully customized computer instead of
getting one pre-built; such as Dell, Apple, Sony, and Alienware. There are 6 form factors (in....
Problem With Java Script Popup Form
Doesnt work in Safari (1) This code wont work in Safari, but works fine in Firefox 2. Can someone help. The error pops up
however. It just doesn't do anything unless you dont pick one and then it says Pick a Windows
tweak, but if you DO pick one it doesnt even try to load anything. Everything you see below is
everything inside my PHP Include. If you would like to view my actual site it's
http://boozkerstweaks.trap17.com There might be PHP errors and stuff right now, but i am working on
those, but this i can not get. CODE <td valign="top" class="right">
....
Have Diferences Of Performance Form Ps2 Full Console To Mini-ps2?
(7) Hi. Please if anybody test a mini-ps2. Have diferences of performance form PS2 full console to
mini-ps2? thanks.....
Form To Php Mail. Attachment
(12) i know there are a few topics talk about attachment problem, but i want to know if anyone could show
me a basic code for attaching files like pictures with the message. I made a html form, and
redirect the information to my mail.php file to process the information and send it to my email. I
want to know what do i have to do to attach files like pictures. I tried to search on google, and
the codes are so complicated (i'm an amateur at this). Would it be possilbe if you could show me
the code and explain to me what it does and how i could customize it to fit my needs?....
Free Windowsxp Sp2 Cd From Microsoft
just fill the request form and recive it (10) microsoft offer 100% free windows xp sp2. just go to this link
http://www.microsoft.com/windowsxp/downloa...us/default.mspx and fill your address they will send
you the cd to you. I just recive the cd yesterday. /biggrin.gif' border='0'
style='vertical-align:middle' alt='biggrin.gif' /> I see new feature like directx 9c , WMP9 ,
firewall , and the one I like is popup blocker! /wink.gif' border='0'
style='vertical-align:middle' alt='wink.gif' /> PS. waiting for the cd about 1-2 week if you
write an exact address.....
Looking for form, validation
|
|
Searching Video's for form, validation
|
advertisement
|
|