...

View Full Version : HTML data to Javascript to MySQL



Iggy0828
10-09-2012, 04:02 AM
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

xelawho
10-09-2012, 04:53 AM
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...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum