Welcome Guest, Not a member yet? Register   Sign In
javascript calling controler without form
#10

[eluser]dippy[/eluser]
gotcha.

now instead of passing variables through like so:

Code:
var locations = document.joinForm.locationCheckBox.value;
       var website = document.joinForm.website.value;
       $.post(base_url+"join/processJoin", { 'locations' : locations, 'website' : website },
       function(data){
            alert(data);
       }, "json");

is there a way to send all data from the form to the php controller that will take all the form elements and process them into a database?

i can send one over at a time like the above but i was trying document.formName but that just kept sending back a [object HTMLFormElement] in the alert.

is there a special way i should be handling the form elements in php once i send them over using the document.formName ??


Messages In This Thread
javascript calling controler without form - by El Forum - 09-24-2009, 02:13 PM
javascript calling controler without form - by El Forum - 09-25-2009, 07:21 AM
javascript calling controler without form - by El Forum - 09-25-2009, 10:08 AM
javascript calling controler without form - by El Forum - 09-29-2009, 07:45 AM
javascript calling controler without form - by El Forum - 09-29-2009, 07:33 PM
javascript calling controler without form - by El Forum - 09-30-2009, 02:09 PM
javascript calling controler without form - by El Forum - 10-01-2009, 09:45 AM
javascript calling controler without form - by El Forum - 10-01-2009, 09:48 AM
javascript calling controler without form - by El Forum - 10-01-2009, 11:06 AM
javascript calling controler without form - by El Forum - 10-01-2009, 11:25 AM
javascript calling controler without form - by El Forum - 10-09-2009, 10:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB