Contact Box?

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
Watch

joester7

Established Member
Impact
0
I do not know why I am having such a hard time installing this but I need a simple contact box including Name Email Company and Message just like this one:
http://www.centricstudios.com/contact/
That will be able to send the information right to my email address. Thanks for all the responses.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Try this code.. save it as a .php file and access it in your browser.
Code:
<?php
if ($comments)
{ 
	
	$emess = "This is what the person said\n\n";
	$emess.= "-------------------------------------------------\n\n\n";
	$emess.= "Comments:\n $comments\n\n";
	$emess.= "Contact Info:\n $name\n";
	$ehead= "$email\r\n";
	$subj = "Contact Form";
	$mailsend=mail("[email protected]","$subj","$emess","$ehead");
	
	echo "Thanks for the email.<br>";
	echo "I'll get back to you as soon as I can using the email you provided.";
}
else
{ 
  

	echo "<b>Contact Me</b><br><br>";
	echo '<form method="post" action="'.$PHP_SELF.'"> ';
	
	echo 'Name: <br>';
	echo '<input type="text" name="name"><br><br>';
	
	echo 'Contact Email: <br>';
	echo '<input type="text" name="email"><br><br>';
	
	echo 'Message: <br>';
	echo '<textarea name="comments" rows="5" cols="30"></textarea><br><br>';
	
	echo '<br>';
	echo '<input type="submit" value="Contact Me!"><br>';
	echo '</form>';

}


?>
 
0
Close
thanks that worked great!
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back