ranacseruet Posted February 12, 2009 Share Posted February 12, 2009 Hi, I want to submit a big html form submitted by jax in the post method. As it is big, so i don't want to make url string like asd.php?a=1&b=2...... just submit the form, so that i can get all the values $_POST[] in php script. Is it possible? Link to comment Share on other sites More sharing options...
jeffman Posted February 12, 2009 Share Posted February 12, 2009 Nope. AJAX is a whole other thing.But you can automate things. Your form element has an elements collection (like an array) that contains a reference to each form element inside it. You can loop through it to get all the values. (Be sure to test if they actually have values, and to see if checkable items are checked.)Since you're using form tags, I assume you have a submit handler of some sort? That's where you'd put the thing I just described. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.