i'm making a custom contact form using wp_mail function. I got two fields (name and email) and a send button. It works just fine.
I'm using this code: http://wordpressapi.com/2010/11/26/create-contact-page-wihout-wordpress-plugin/
Now the tricky part. I add to the form a list of all post published and a text field right next to each one of them. My idea is to have some kind of products cart, where I can choose how many items of a certain product (post) do I want and this order is received by email by the admin.
I can't get the complete fields in the $message.
I think I have to use "foreach" but I have no idea how.
Please, help me!