e possibile creare un formselect (Drop-Down Menu)
in php cmq io ho provato a farlo pero non va.
eccovi il codice di: form.php
eccovi il codice di: sendmail.php
ps.
questo menu a tentina deve funzionare in easymailer 1.1
presente ---> http://www.morpheusweb.it/html/scripts/php/email/mailer.asp
ciao..........................
in php cmq io ho provato a farlo pero non va.
eccovi il codice di: form.php
Codice:
<p>Contact the Webmaster.</p>
<form action="sendmail.php" method=POST>
<table width=100%>
<tr><td align=right>Your Name:</td>
<td align=left><input type=text name=f_name size=30></td></tr>
<tr><td align=right>Your E-mail</td>
<td align=left><input type=text name=f_mail size=30></td></tr>
<tr><td align=right>Message</td>
<td align=left><textarea cols=40 rows=5 name=f_message></textarea></td></tr>
<tr><td align=right>Categoria:
<form name="f_former">
<select name="Seleziona" size="1">
<option selected>Seleziona</option>
<option>Home</option>
<option>Contatti</option>
<option>Chat</option>
<option>Forum</option>
<option>Download</option>
<option>Prodotti</option>
<option>Links</option>
</select></td></tr>
<input type=submit value="Send Mail">
</table>
</form>
</form>
eccovi il codice di: sendmail.php
Codice:
<?
include "config.php";
if ($f_name <> "" and $f_mail <> "" and $f_message <> "" and $f_former <> "") {
mail("$email", "$subject", "From: $f_name\nMail: $f_mail\nMessage: $f_message\nForm: $f_former\n");
$msg = "Your message has been sent, thank you.";
} else {
$msg = "All fields are required, push the back button to fill out the rest.";
}
?>
<p><? echo $msg; ?></p>
ps.
questo menu a tentina deve funzionare in easymailer 1.1
presente ---> http://www.morpheusweb.it/html/scripts/php/email/mailer.asp
ciao..........................

Ultima modifica: