- Home
- Categorie
- Coding e Sistemistica
- Help Center: consigli per il tuo progetto
- Form contact php
- 
							
							
							
							
							
Form contact phpCiao ragazzi sono nuovo del forum spero possiate aiutarmi. 
 ho dei problemi sul mio form php.<form method="GET" action="invio.php"> 
 <p>name</p>
 <input type="text" name="name" class="text" /><p>email</p> 
 <input type="text" name="email" class="text" /><p>message</p> 
 <textarea name="comment" class="text" ></textarea><input type="submit" id="submit" value="send" class="submit-button" /> 
 </form>pagina invio.php <? 
 $name = $_GET['name'] ;
 $email = $_GET['email'] ;
 $comment = $_GET['comment'] ;
 mail( "[email protected]", "info_wemakestudio", $message, "From: $email" );
 print "Congratulations your email has been sent";
 ?>il problema è che la mail arriva ma non arrivano i valori (name,comment) 
 vi prego help me!
 
- 
							
							
							
							
							
Così dovrebbe andare: <?php 
 $name = $_GET['name'] ;
 $email = $_GET['email'] ;
 $comment = $_GET['comment'] ;
 $message = "Messaggio da: " . $name . "\r\n" . $comment;
 mail("[email protected]", "info_wemakestudio", $message, "From: $email");
 echo "Congratulations your email has been sent";
 ?>