jolly_jonesy Posted August 24, 2006 Share Posted August 24, 2006 HiI 'm relitively new to php but am making good progress on my first project. I am currently writing some code to proccess a number of existing forms. The php script had to be self contained and I can not alter the existing forms. I am able to write all the cotent very easily using:$msg.="\nAddress: ".$_POST['address']; for examplehowever the form includes a dropdown menu and unfortunatly the person who design the forms included only numbers for the values rather than copying the descriptive names..... for exampleoption 1 in the drop down (named howreach) is: label = 'Browsing the internet' value = '1' so all my php script sees is '1' so... if I write:$msg.="\nWhere you found us: ".$_POST['howreach']; the mail will show .... Where you found us: 1Shows '1' rather than 'Browsing the internet'......So, how can I write out or assign descriptions to the values 1-10 coming from my dropdown menu????cheersJolly Quote Link to comment Share on other sites More sharing options...
ronverdonk Posted August 24, 2006 Share Posted August 24, 2006 A little confusing to me! Show me some code.ROnald :cool: Quote Link to comment 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.