www.webdeveloper.com
Results 1 to 3 of 3

Thread: Send email according to option select value HELP

  1. #1
    Join Date
    Oct 2012
    Posts
    15

    Send email according to option select value HELP

    I'm trying to Send email according to option select value.

    I need the html select to read the MySQL table to get the 'id' and the corresponding 'email' value.

    and I'm new to php and mysql

    help anybody?

    thanks!

  2. #2
    Join Date
    Feb 2012
    Location
    Tallahassee, FL
    Posts
    280
    Something like:
    PHP Code:
    $emailinfo mysql_query("SELECT * FROM emails");
    $list "<select name='sendto'>";
    while(
    $row mysql_fetch_array($query)){
    $list .= "<option value='"$row['id']."'>".$row['email']."</option>";
    }
    $list .= "</select>";

    echo 
    $list
    Last edited by NoEffinWay; 10-27-2012 at 04:06 AM.

  3. #3
    Join Date
    Oct 2012
    Posts
    13
    This will help you

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles