Jump to content

refael

Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

refael's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. can someone please help me? i have a form on my site and the input is begin sent to my email. i needed to add a multiple select option to the form so i did: <select name="product[]" multiple="multiple"> in the php i added: $product = $_POST['product']; i have all the inputs sent using the $body = (for the email) from that point i am lost! can somebody help?
  2. mikesta707 i really do thank you but it does not work! let me just repeat ok? in the form i have this: select name="product[]" multiple="multiple" size="10" in the mail php i have this: $product = $_POST['product']; $products = array( 'prod1' => 'prod1', 'prod2' => 'prod2' ); $products = ""; foreach($_POST['product'] as $product) { $products .= $products . " "; } $body = $products (this should print the products selected in the email) thanks!!!!
  3. hi thanks!!! how can i add this to the $body?
  4. Hi I hope somone can just help me bring this to work. In a web form i added a multiple select option like so: <select name="product[]" multiple="multiple" ...> in the php file that sends the info to my email i simply added this: $product = $_POST['product']; to the $body i simply added $product $body = " Name - $ime \n \n \n Business - $business \n \n \n Email Address - $email \n \n \n Print Product(s) - $products.[] \n \n \n Budget - $budget \n \n \n Comment - $comment \n \n \n IP - $ip"; that obviously does not work. i am sure i need to loop in an array but have no idea how to so i added this: $products = array( 'product1' => 'product1', 'product2' => 'product2', ................ ); what's next? can someone help me PLEASE?
  5. Hi everyone, As a newbie in php I am quite familiar how to submit a bunch of form input fields to an email (form to email). Here is something I am struggling with: I have a table where the data in the fields are injected (spared) from a database. You see, the table is an actual php code that generates the rows/columns using “for each loop” so the fields name or ID are the same in each row. So I have several rows where each row ends with a “submit” button. What I need to do is once the user click the submit button in a certain row to submit the data to an email. I know how to write the code but how I can determine which filed ID or name to collect as they are all the same? I am not sure how can I collect the fields only from a certain row to an email? Can someone help me understand how to do it? Many many Thanks!
×
×
  • 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.