Jump to content

Problem In Form - How To Process The Value In Array


VikasRai

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.