Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-09-2012, 03:02 AM   PM User | #1
Iggy0828
New Coder

 
Join Date: Sep 2012
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
Iggy0828 is an unknown quantity at this point
HTML data to Javascript to MySQL

I apologize if this is in the wrong forum but since a majority of what I'm doing with this will be in javascript I figured I'd post here. Anyway, I am trying to pass form data, textboxes and checkboxes into javascript to do a complex math function from data on an HTML form that then posts that data via PHP to MySQL. I have no PHP script in the form but I need to pass the content of all numerical textboxes to the javascript to do the formula as well as taking into consideration 15 checkboxes being checked or not. What is the best way to do this?

Thanks in advance
Iggy0828 is offline   Reply With Quote
Old 10-09-2012, 03:53 AM   PM User | #2
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,437
Thanks: 52
Thanked 453 Times in 451 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
give all the relevant form elements id's (or you can use their names, being that the form is going to be submitted)
check if the checkboxes are checked, and do whatever you are going to do with that information
collect the values of the form fields into variables, do your calculation.

it's a little scant on detail, I know, but you're not giving us much to work with...
xelawho is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:43 PM.


Advertisement
Log in to turn off these ads.