Ask a Question related to PHP Development, Design and Development.
-
Joker #1
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
-
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... -
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... -
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... -
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... -
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... -
H. #2
Re: Mail-form problem
Joker wrote:
That's fairly simple...> 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 ??
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



Reply With Quote

