|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Junior Member
Iscritto dal: Jul 2007
Messaggi: 16
|
Form in php per invio email
Ciao a tutti
avrei bisogno che qulcuno mi spiegasse come posso fare per far in modo che cliccando sul bottone invia, i campi riempiti arrivino all indirizzo email da me inserito. So che devo usare php o meglio ajax ma non so implementarlo nella mia pagin. Linko qui il codice della pagina . Grazie mille <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title></title> <script language="JavaScript" type="text/JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <link href="style.css" rel="stylesheet" type="text/css"> </head> <body> <table style="height:750px" cellspacing="0" cellpadding="0" align="center"> <tr> <td style="width:50%;"></td> <td style="width:766px;"> <table style="width:766px;" cellspacing="0" cellpadding="0"> <tr> <td style="height:669px"> <table cellspacing="0" cellpadding="0"> <tr> <td style="width:303px;"> <table cellspacing="0" cellpadding="0"> <tr> <td style=" background:url(images/bg-col.jpg) bottom right no-repeat"> <a href="index.html" ><img alt="" src="images/logo-1.jpg" style="margin-left:37px; margin-top:15px"></a><br> <div style="margin-left:85px; margin-top:78px"><a href="chisiamo.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('r1','','images/l1-1.jpg',1)"><img alt="" src="images/l1.jpg" name="r1"></a><br> <a href="mario.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('r2','','images/l2-2.jpg',1)"><img alt="" src="images/l2.jpg" name="r2"></a><br> <a href="prodotti.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('r3','','images/l3-3.jpg',1)"><img alt="" src="images/l3.jpg" name="r3"></a><br> <a href="idea.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('r4','','images/l4-4.jpg',1)"><img alt="" src="images/l4.jpg" name="r4"></a><br> <a href="link.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('r5','','images/l5-5.jpg',1)"><img alt="" src="images/l5.jpg" name="r5"></a><br> <a href="contatti.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('r6','','images/l6-6.jpg',1)"><img alt="" src="images/l6.jpg" name="r6"></a></div> </td> </tr> </table> </td> <td style="width:463px;"> <table style=" background:url(images/bg-bot.gif) bottom no-repeat" cellspacing="0" cellpadding="0"> <tr> <td style="height:120px"> <div class="s_text" style="margin:96px 0px 0 278px"> <a href="chisiamo.html" >Home page</a> | <a href="negozio.html" >Negozio</a> | <a href="prodotti.html" >Prodotti</a> </div> </td> </tr> <tr> <td style="height:549px; background:url(images/bg-top.gif) top no-repeat"> <table cellspacing="0" cellpadding="0"> <tr> <td style="height:335px"> <table style="width:442px; height:165px; margin-left:13px; margin-top:12px" class="top-k" cellspacing="0" cellpadding="0"> <tr> <td class="top-k2"> <table class="bot-k" cellspacing="0" cellpadding="0"> <tr> <td class="bot-k2"> <div class="lh" style="margin:4px 15px 0 5px"> <img alt="" src="images/7-p1.jpg" style="margin-right:20px; " align="left"> <img alt="" src="images/7-t1.gif" style=" margin-top:18px"><br> <br style="line-height:16px"> <strong class="h_text">Contattaci</strong> direttamente o vieni a trovarci nel nostro negozio on-line.Qui potrai acquistare direttamente i nostri prodotti.<br> Le spese di spedizione sono gratuite.<br> <br style="line-height:4px"> Oppure compila il nostro Form per ricevere informazioni siamo a tua disposizione.....<br> </div> </td> </tr> </table> </td> </tr> </table> <img alt="" src="images/7-t2.jpg" style="margin-left:26px; margin-top:17px"><br> <table class="no_class" cellspacing="0" cellpadding="0"> <tr> <td style="width:249px;"> <div style="margin:9px 0px 0 39px"> <strong class="h_text">Contatti:</strong><br> Telephone: 392 4610702<br> E-mail: <a href="mailto: info@marl-on.com"></a><br> <br> <strong class="h_text">Negozio On-line:</strong><br> <br> Ebay: Vieni a trovarci<a href="#" class="l_text"></a> </div> </td> <td style="width:214px;"> <div style="margin:9px 0px 0 0px"><br> <br> </div> </td> </tr> </table> </td> </tr> <tr> <td > <table style="width:442px; height:200px; margin-left:13px; " class="top-k7" cellspacing="0" cellpadding="0"> <tr> <td class="top-k2"> <table class="bot-k" cellspacing="0" cellpadding="0"> <tr> <td class="bot-k2"> <img alt="" src="images/7-t3.jpg" style="margin-left:13px; margin-top:11px"><br> <br style="line-height:5px"> <form id="form1" action="" enctype="multipart/form-data" name="form1"> <table class="no_class" cellspacing="0" cellpadding="0"> <tr> <td style="width:221px;"> <div class="form"><input type="text" value="Nome:" style="margin-left:19px"></div> <div class="form"><input type="text" value="Cognome:" style="margin-left:19px"></div> <div class="form"><input type="text" value="Telefono:" style="margin-left:19px"></div> <div class="form"><input type="text" value="E-mail:" style="margin-left:19px"></div> </td> <td style="width:221px;"> <textarea rows="40" cols="50" onClick="this.value=''">Messaggio:</textarea><br> <br style="line-height:7px"> <img alt="" src="images/a3.gif" style=" margin-right:5px; vertical-align:middle"><strong><a href="#" onClick="document.getElementById('form1').reset()" class="h2_text">reset</a></strong> <img alt="" src="images/a3.gif" style="margin-left:20px; margin-right:5px; vertical-align:middle"><strong><a href="contatti.php" onClick="document.getElementById('form1').submit()" class="h2_text">invia</a></strong> </td> </tr> </table> </form> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td style="height:81px"> <div class="c_text" style="margin:27px 0px 0 88px"><span class="c_text" style="margin:198px 0px 0 156px">Copyright 2007 <a href="#" >Terms of Use</a> | <a href="#">Privacy Policy</a></span></div> </td> </tr> </table> </td> <td style="width:50%;"> <table cellspacing="0" cellpadding="0"> <tr> <td style="height:120px"></td> </tr> <tr> <td style=" background:url(images/bg-right.gif) repeat-x"></td> </tr> </table> </td> </tr> </table> </body> </html> Ultima modifica di Kubo : 16-07-2007 alle 13:11. |
![]() |
![]() |
![]() |
#3 |
Junior Member
Iscritto dal: Jul 2007
Messaggi: 16
|
MA COME POSSO IMPLEMENTARLA QUI DENTRO?
|
![]() |
![]() |
![]() |
#4 |
Junior Member
Iscritto dal: Jul 2007
Messaggi: 16
|
nessuno?
|
![]() |
![]() |
![]() |
#5 |
Senior Member
Iscritto dal: Feb 2003
Città: Formia
Messaggi: 1545
|
Devi passare i parmatri ad un altra pagina.
Poi richiami un funzione mail mail($a, $oggetto, $messaggio, $intestazioni); è semplice
__________________
Il portale delle infomazioni di Latina e Provincia Giralatina.it e’ nato con il preciso intento di promuovere varie attività che si svolgono nella provincia di Latina http://www.giralatina.it Il Blog dei Pendolari http://www.giralatina.it/blog/mybloggie/index.php |
![]() |
![]() |
![]() |
#6 |
Junior Member
Iscritto dal: Jul 2007
Messaggi: 16
|
a pagina la faccio php? che codice metto dentro?
|
![]() |
![]() |
![]() |
#7 |
Senior Member
Iscritto dal: Feb 2003
Città: Formia
Messaggi: 1545
|
si
__________________
Il portale delle infomazioni di Latina e Provincia Giralatina.it e’ nato con il preciso intento di promuovere varie attività che si svolgono nella provincia di Latina http://www.giralatina.it Il Blog dei Pendolari http://www.giralatina.it/blog/mybloggie/index.php |
![]() |
![]() |
![]() |
#8 |
Junior Member
Iscritto dal: Jul 2007
Messaggi: 16
|
ma non riesco a costruire lo script non so come si faccia. non e che me ne puoi mandare uno che va bene per questo form lo inserisco inizio pagina contatti.php cosi è piu semplice?
Grazie |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 06:55.