473,326 Members | 2,134 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,326 software developers and data experts.

Best Scripting Language for Two Results from a Web Form

Greetings. I tried to register but the registration page would not open. I would like to create a web form where a person enters basic information (name etc.) as well as numerical information (sales price). The numerical information will be used to calculate basic mathematical functions. There will also be some drop down menus in this form that will dictate exactly which mathematical calculation will be performed. When the user clicks the submit button, I would like two things to happen.
1. The numerical results of the calculation and a graphical image of the results (similar to an excel graph) are returned to the web page without any interruption (AJAX?). The graph is based on many behind the scene calculations.
2. The information in the form along with the results are emailed to the person that filled out the form (email address is one of the form fields) and emailed to the web/company owner (javascript).

I am basically learning how to do this and I am would like to be directed in the best direction of what coding language to use.

Thank you,
DuBose Griffin
Sep 29 '10 #1
4 1206
gits
5,390 Expert Mod 4TB
certainly you will need two things:

1. JavaScript for the clientside interaction/behaviour handling - especially when you want to use AJAX

2. a serverside language which will take care of your mail-functions, image-/graph-creation, calculation, etc. - here you might choose from a bunch of possibilities PHP/JSP/ASP(.NET)/Ruby/etc. ... so that would depend on your knowledge and a bit on the server-infrastructure where the app should run on ...
Sep 29 '10 #2
Thank you very much for your reply. So, here is what I plan to do and please comment if I have this straight.

1. Build a basic HTML form with js on the client side to guide what is input by the user (validation).

2. When the user clicks the submit button, the PHP scripting will control the email send function and js/ajax will control the calculations on the client side and the return of the information to the web page (calculated number and graph).

I guess my uneducated question is: "Is this possible to have the submit button perform both a php command and a javascript command? or Is the user going to have to click on two different buttons?

Thank you,
DuBose Griffin
Sep 29 '10 #3
gits
5,390 Expert Mod 4TB
when you click a submit button then you might first run a javascript function that could return true or false to avoid/allow the submit ... when you wnat to use ajax, then you wouldn't use a form submit but send the XMLHttpRequest together with the related parameters ...
Sep 29 '10 #4
rnd me
427 Expert 256MB
you can also use javascript on the server if you have .net; might be one less thing to learn...
Oct 8 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

41
by: Richard James | last post by:
Are we looking at the scripting world through Python colored glasses? Has Python development been sleeping while the world of scripting languages has passed us Pythonista's by? On Saturday...
0
by: Patrick Finnegan | last post by:
I need to write utility scripts for client sites that do not allow the installation of C based interpreters like Perl, Python, Tcl, etc on DB2 servers. My scripts must be cross plarform so no...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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
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.