Go Back   Novahq.net Forum > Computers > Web design and Programming
FAQ Community Calendar Today's Posts Search

Web design and Programming Discuss website creation and other programming topics.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-21-2004, 12:35 AM
Surge is offline Surge
Registered User

Join Date: Jan 2002
Posts: 265

Copy and paste to notepad and name it contact.php

Edit down below in the code where it says youremail@yoursite.com. Also edit where it says Email Title which will be the title of the email. That's about it. No mysql involved at all . You can even change the html to match your site.

PHP Code:
<center><h1><b>Contact Us</b></h1><br><br> 
<form action=contact.php?action=mail method=post> 
Your Name:<input type=text name=name><br> 
Suggestion:<input type=text name=comment><br> 

<input type=submit value=Submit></center> 



<? 
if($action=='mail') 

  
mail("youremail@yoursite.com", "Email Title", "Name: $name\nComments: $comment", "From: [email]youremail@yoursite.com[/email] <youremail@yoursite.com>"); 
echo "<strong><b>Thank you for contacting us.</b></strong>"; 

?>
__________________
Squad Tag Generator
Take the guessing work out of making you squad tag.
unavailable for re-design
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:59 AM.




Powered by vBulletin®