473,327 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Complicated Form Script Needed

I have an HTML form that requires some hefty scripting and I realize
I'll likely have to pay for help. In the end, it has to create a
string where each of 5 record items is separated by :: and each record
is separated by |.
The form has 1 input type field in the first and last column of a four
column table and there are currently 24 rows. Consider one row: Field
1 (F1) is an input box with a 2 character limit and each name is a
code (e.g. AS97). It must only accept integers from 1 to 20 or be
empty. Field 2 (F2) is a read-only input box. If user enters 1 in F1,
1 is multiplied by a dollar value constant (C) to give a dollar value
in F2. If the value in F1 is 2, the value in F2 is C-2%. If F1 is 3,
F2 is C-3% and so on. I have a simple formula that should accomplish
this: C*(100-F1)*0.01. Obviously, this has to be driven by an onChange
or similar event. But wait, it gets better. Each row works this way,
and needs it's own constant. So in effect, there is a line total (I am
not capturing this) and a form total. I only need to stop the
submission process if the form total exceeds amount 'X'. If all is OK,
we proceed to send values: Price::Qty::Code::Description::{FLAGS} for
each row, where Price is the value of F2, Qty is F1, Code is the name
of F1, Description will likely be another 'read only' input box, and
{FLAGS} are fields I need to tack onto the end. It could be one or up
to four, so I have to be able to modify this. An example of {Flags}
would be {PST}.
So if there are 3 rows with values for F1, the string could resemble:
10.00::1::AS97::blah description1::{PST}{TEST}|20.00::2::ET97::blah
description2::{PST}{TEST}|5.00::10::ETP2K::blah
description3::{PST}{TEST}
That's 95% of it. Maybe JavaScript is best used to produce a form
total (to check against the maximum 'X' and force integers in F1 but
not the rest? Any takers?
Jul 20 '05 #1
4 1852
In article <cc**************************@posting.google.com >,
mi*******@mountaincable.net says...
I have an HTML form that requires some hefty scripting and I realize
I'll likely have to pay for help. In the end, it has to create a
string where each of 5 record items is separated by :: and each record
is separated by |.

....

What exactly are you asking? Do you want someone to write this for you?
If so, assuming this is something for a job you are working on, it would
be reasonable to assume you would pay for the code in some fashion. If
you are asking for help in a specific area, ask the specific question.

Dan
--

Remove NOT from email address to reply. AntiSpam in action.
Jul 20 '05 #2
Dan Brussee <db******@NOTbetterwaycomputing.com> wrote in message news:<MP************************@news-server.nc.rr.com>...
In article <cc**************************@posting.google.com >,
mi*******@mountaincable.net says...
I have an HTML form that requires some hefty scripting and I realize
I'll likely have to pay for help. In the end, it has to create a
string where each of 5 record items is separated by :: and each record
is separated by |.

...

What exactly are you asking? Do you want someone to write this for you?
If so, assuming this is something for a job you are working on, it would
be reasonable to assume you would pay for the code in some fashion. If
you are asking for help in a specific area, ask the specific question.

Dan


read words 12 through 20 in first sentence
Jul 20 '05 #3
In article <cc**************************@posting.google.com >,
mi*******@mountaincable.net says...
Dan Brussee <db******@NOTbetterwaycomputing.com> wrote in message news:<MP************************@news-server.nc.rr.com>...
In article <cc**************************@posting.google.com >,
mi*******@mountaincable.net says...
I have an HTML form that requires some hefty scripting and I realize
I'll likely have to pay for help. In the end, it has to create a
string where each of 5 record items is separated by :: and each record
is separated by |.

...

What exactly are you asking? Do you want someone to write this for you?
If so, assuming this is something for a job you are working on, it would
be reasonable to assume you would pay for the code in some fashion. If
you are asking for help in a specific area, ask the specific question.

Dan


read words 12 through 20 in first sentence


I admit I missed the part about "pay for help". Although my response was
not meant as a flame, I can see that it might have been taken that way.

--

Remove NOT from email address to reply. AntiSpam in action.
Jul 20 '05 #4
> > > What exactly are you asking? Do you want someone to write this for you?
If so, assuming this is something for a job you are working on, it would
be reasonable to assume you would pay for the code in some fashion. If
you are asking for help in a specific area, ask the specific question.

Dan


read words 12 through 20 in first sentence


I admit I missed the part about "pay for help". Although my response was
not meant as a flame, I can see that it might have been taken that way.


It did seem that way. However, I have found someone to help with this.
If anyone is interested the result will be two purchase forms at
www.veraccess.com after about July 9.
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robert V | last post by:
Hi all, I could use some help programming on of my Perl script to handle different submit buttons within the same form. Here is what I have so far. A user goes to a Web form and inputs some data...
11
by: Jim | last post by:
Hi, I keep getting form results emailed to me that would indicate a form from my web site is getting submitted with all fields blank or empty, but my code should preventing users from proceeding...
14
by: StumpY | last post by:
HI, I have set up a page with a form which appends data to a .csv file on my asp server, this is to enable a limited number of users to add news threads to this file, which contains the data in...
3
by: % =joe % | last post by:
I cannot get this code to work. Very simple...I have three list menus. I want to do a check before the form submits to make sure that the value of the 3 fields is equal to 12. Here's my...
3
by: Don | last post by:
Hi all, Is there some way in a <form> tag to transfer control to a JavaScript function after completion of the submit, where the <form> and function are on the same page? I believe ONSUBMIT and...
4
by: Steve | last post by:
Hi everyone, I have a test page. When I press the button, it bring form.html, which is fine. When I press Enter key in the textbox, it gives me an error saying this.form.cmd is not an object. ...
4
by: mitch-co2 | last post by:
What I am trying to do is when someone clicks on the YES radio button I want the text field called MYTEXT to equal the text field named DATE. The below code works as long as I do NOT UN-COMMENT...
8
by: david.lindsay.green | last post by:
Hello all, I am quite new a web scripting and making web pages in general and I have stumbled across a problem I have as yet been unable to solve. I am trying to take the contents of a textarea box...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.