<?php$message="";$to="xxxxxx@xxxxx.com";$subject="xxxxxxxxxxxx.";# Omit these fields:$ex=array();$ex[]="submit"; # Where submit is the name of the submit button.# iterate the $_POST arrayforeach ($_POST as $key=>$value) {if (!in_array($key, $ex)) {$message.=$key.": " . $value . "\n";}}# Send message by e-mail.$sm=mail($to, $subject, $message);if (!$sm) {print "Error: Cannot send e-mail. Please try again or contact the administration if the problem persists.";}else{print "Warranty Form has been sent successfully.";}?>