Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Mail-form problem

    Hello,

    I'm trying to make a mail-form with PHP. But the point is I want a function
    so the user can choose the receiver (adress) with a drop-down menu box.

    example: [url]http://www.battaniye.net/?git=5[/url]

    How can I program this in PHP ??

    Can someone help me?


    Thanks.


    Joker Guest

  2. Similar Questions and Discussions

    1. Need help with Mail Form and ASP
      Can someone assist me in getting my contact form on my Flash site working. I have a name, email, phone and a comments field and I want to submit...
    2. Form to Mail
      Anyone familiar with this extension? I downloaded Form to Mail from HDW. I installed it, and then restarted Dreamweaver (I'm running Dreamweaver...
    3. mail to form php
      Greetings , i have been working on DW for a while now , and i have just discovered the magic of extensions =\ I got a Qustion though , Is there...
    4. Asp.Net Form Mail Problem
      I have built an asp.net/vb.net form with nine text fields of which i have managed to validate effectively. However, am unable to get it to submitt...
    5. Mail:Sender - HTML Mail with alternatives problem
      I'm trying to generate an HTML mail with text alternatives using the mail:sender module. As everybody can see below the message was created and...
  3. #2

    Default Re: Mail-form problem

    Joker wrote:
    > Hello,
    >
    > I'm trying to make a mail-form with PHP. But the point is I want a function
    > so the user can choose the receiver (adress) with a drop-down menu box.
    >
    > example: [url]http://www.battaniye.net/?git=5[/url]
    >
    > How can I program this in PHP ??
    That's fairly simple...
    Assuming you have your addresses in a database, you select everything
    (or those entries which the user is allowed to send mail to), loop over
    the result and put every entry into an HTML select box.


    ***snip***
    <select name='sendTo'>

    <?php
    $query = "SELECT display_name, address FROM email_adresses)";
    $result = mysql_query($query);
    while (list($dispName, $email) = mysql_fetch_row($result))
    {
    echo("<option value='".$email."'>".$dispName."</option>");
    }
    ?>

    </select>
    ***snap***

    H.
    H. Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139