Advanced Form Help
Advanced Form Help
Hello all. First time poster, long time web-addict. I also hate the fact that the first thing posted here from me is a message asking for help, but I couldn't get by with a little help through my friends (the Beatles were wrong!) and the other support forums I've gone to have either snubbed me or gave me that oh too common "Holier Than Thou" response.
I've looked around many places for tutorials for complex form issues and most of them are just "prettifying" forms. That's fine and dandy, if that's what you need your form to do. I need a massive amount of data manipulation through the form. Let me explain.
I need to build a form that essentially can run itself over 7 times in a loop. For example, if you look at the link I posted, it's what the form looks like when the user adds a location to a piece of clothing. The form needs to support up to 7 locations. In order to make the form user-friendly, I decided that at the bottom of each "location page" the user should have an option to either:
Add another location. This would add the variables selected in the current form to a String, and reset the form. This process would continue in a loop until the user hits 7 locations.
Otherwise, the user hits the submit button, where I take this string of potentially 7 iterations of the same form and regurgitate it back to the user/create an email message to send to the guy who creates the order.
As I hope you can tell, I've gotten the base of the form created. It's hot-swappable content per line (because the values needed for an embroidery line, applique line and a blank line are different), and iff it needs Greek letters those values show.
Basically that's where I am now. I just read a thread here telling how to post form content to a PHP file (which I'll need to do soon enough), but my trouble comes from starting the loop and adding all the form data to a string. Or, if anyone has any better suggestions, I'm open to them...I'm baffled as how to do all this data replication!
Like I said before, I haven't had luck with online tutorials. I've also tried using the form plugin for jQuery to no success. I think if I could just get some help getting started on the right foot I'd be square.
I'm pretty new to jQuery/Javascript, and can do this with ease in PHP, but this kind of form calls for a different kind of monster, and it's one that is impervious to my magic. If this doesn't make enough sense, or if you need more details, please let me know.
Thanks for any and all help,
-MrD