-
bottone invio e-mail
Codice HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
<!--
.Stile1 {color: #FFFFFF}
-->
</style>
</head>
<body class="sub">
<table width="100%" border="0" cellpadding="4" cellspacing="0" bgcolor="#000000">
<tr>
<td width="100%" style="vertical-align: top">
<form action="" method="post" name="form1" id="form1">
<table width="90%" border="0" cellspacing="2" cellpadding="4">
<tr>
<td colspan="2" class="TitleColor Stile1" style="vertical-align: top">
<label for="name">Nome: </label>
<input id="name" name="textfield" type="text" size="50" /> </td>
</tr>
<tr>
<td colspan="2" class="TitleColor Stile1" style="vertical-align: top">
<label for="email">Email: </label>
<input id="email" name="textfield2" type="text" size="50" /> </td>
</tr>
<tr>
<td colspan="2" class="TitleColor Stile1" style="vertical-align: top">
<label for="subject">Soggetto:</label>
<input id="subject" name="textfield2" type="text" size="50" /> </td>
</tr>
<tr>
<td colspan="2" class="TitleColor Stile1" style="vertical-align: top">
<label for="message">Messaggio:</label>
<br />
<br />
<textarea id="message" name="textfield2" rows="5" cols="50"></textarea> </td>
</tr>
<tr>
<td colspan="2">
<input name="Submit" type="submit" value="invia" /> </td>
</tr>
</table>
</form> <p> </p> </td>
</tr>
</table>
</body>
</html>
come si fa a fare in modo che appena riempite le caselle e premuto il bottone le informazioni e il messeggio arrivino a me!
-
Ti dovrebbe bastare scrivere così il tag FORM:
Codice HTML:
<FORM ACTION="mailto:mymail@mydomain.org" METHOD="post">
In questo modo, all'indirizzo che hai specificato, riceverai un email con allegato un file di testo, che contiene tutti i valori del form in forma simile a questa:
Codice:
name=Davide&email=dementialsite@altervista.org&subject=Prova&message=Ciao&submit=Invia
Stammi bene...
-
non ho capito il primo codice dove lo devo inserire!?
ho provato questo ma non fà
Codice HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body class="sub">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="100%" height="309" style="vertical-align: top">
<FORM ACTION="mailto:davideagnello@hotmail.it" METHOD="post">
<table width="90%" border="0" cellspacing="2" cellpadding="4">
<tr>
<td colspan="2" style="vertical-align: top" class="TitleColor">
<label for="name">Nome: </label>
<input id="name" name="textfield" type="text" size="50" /> </td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top" class="TitleColor">
<label for="email">Email: </label>
<input id="email" name="textfield2" type="text" size="50" /> </td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top" class="TitleColor">
<label for="subject">Soggetto:</label>
<input id="subject" name="textfield2" type="text" size="50" /> </td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top" class="TitleColor">
<label for="message">Messaggio:</label>
<br />
<br />
<textarea id="message" name="textfield2" rows="5" cols="50"></textarea> </td>
</tr>
<tr>
<td colspan="2">
<input type="submit" name="Submit" value="invia" /> </td>
</tr>
</table>
</form> <p> </p> </td>
</tr>
</table>
</body>
</html>
[DS] Non inviare messaggi consecutivi, usa la funzione EDIT del forum...
-
Prova a modificare il codice così:
Codice HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body class="sub">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="100%" height="309" style="vertical-align: top">
<FORM ACTION="mailto:davideagnello@hotmail.it" METHOD="post">
<table width="90%" border="0" cellspacing="2" cellpadding="4">
<tr>
<td colspan="2" style="vertical-align: top" class="TitleColor">
<label for="name">Nome: </label>
<input id="name" name="name" type="text" size="50" /> </td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top" class="TitleColor">
<label for="email">Email: </label>
<input id="email" name="email" type="text" size="50" /> </td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top" class="TitleColor">
<label for="subject">Soggetto:</label>
<input id="subject" name="subject" type="text" size="50" /> </td>
</tr>
<tr>
<td colspan="2" style="vertical-align: top" class="TitleColor">
<label for="message">Messaggio:</label>
<br />
<br />
<textarea id="message" name="message" rows="5" cols="50"></textarea> </td>
</tr>
<tr>
<td colspan="2">
<input type="submit" name="Submit" value="invia" /> </td>
</tr>
</table>
</form> <p> </p> </td>
</tr>
</table>
</body>
</html>
-