This is a generic Form using the Shared CGI Script | |
Display | HTML Code |
<form name="myform" method="post" action="http://www.tdstest.com/cgi.share/mailer.cgi"> <input type="hidden" name="recipient" value="testuser@tds.net"> <input type="hidden" name="subject" value="TEST email form"> <input type="hidden" name="redirect" value="/thankyou.html"> <input type="hidden" name="print_config" value="email"> <p>Name: <input type="Text" name="CustomerName"
size="25">
| |
Additional Settings for creating a CGI form |
This is a generic Form Using PHP | |
Display | Code |
<form name="myform2" method="post" action="sendmail.php"> Email:<input name="email" type="text" /><br> |
|
Create a sendmail.php file using the text to the right | <?php $email = $_REQUEST['email'] ; $name = $_REQUEST['name'] ; $company = $_REQUEST['company'] ; $message = $_REQUEST['message'] ; $mailbody = " Info Form ----------------------- Name: $name Company: $company $message"; mail( "testuser@tds.net", "Contact Information Form", $mailbody, "From: $email" ); header( "Location: /thankyou.html" ); ?> |