VikasRai Posted November 3, 2012 Share Posted November 3, 2012 Hi all, I have created a PHP form and all the values are processing fine and coming in Email via send.php , the only problem is with the multiple choice field , I dont understand how to get the values in array and process them . Select your destination field has multiple choices and I want all the cities selected to be sent in email Page Link : http://www.indiatravelvacation.com/designyourtrip.php Looking forward for your help on this designyourtrip.php send-mail-design.php Quote Link to comment https://forums.phpfreaks.com/topic/270241-problem-in-form-how-to-process-the-value-in-array/ Share on other sites More sharing options...
gizmola Posted November 3, 2012 Share Posted November 3, 2012 Based on your existing code I would say that it is working as designed. You are using javascript to take a drop down list and use that to add li's to an unordered list. An unordered list is not a form element, thus when your form is submitted, the ul is not sent. You probably want an extra routine that copies the li's to a hidden form element which has an array structure. In short, you need additional javascript to continue with the design you have now. Quote Link to comment https://forums.phpfreaks.com/topic/270241-problem-in-form-how-to-process-the-value-in-array/#findComment-1389906 Share on other sites More sharing options...
VikasRai Posted November 3, 2012 Author Share Posted November 3, 2012 Thanks for your reply, can you please what short of Javascript do I require. Is it possible you can sugegst me that. I am new to this so cant figure out what to do next. Best Regards Quote Link to comment https://forums.phpfreaks.com/topic/270241-problem-in-form-how-to-process-the-value-in-array/#findComment-1389921 Share on other sites More sharing options...
VikasRai Posted November 3, 2012 Author Share Posted November 3, 2012 I have got an idea from this link http://odyniec.net/articles/multiple-select-fields/ Quote Link to comment https://forums.phpfreaks.com/topic/270241-problem-in-form-how-to-process-the-value-in-array/#findComment-1389922 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.