NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Email Submission Form

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 12-14-2004, 02:21 PM THREAD STARTER               #1 (permalink)
New Member
Join Date: Dec 2004
Posts: 13
[InF3cTed] is an unknown quantity at this point
 



Email Submission Form


I need code.. That acts as a form..
That allows users to fill in teh desired information fields..
then when they submit the form..
It emails me with the details they filled in..

This possible??
[InF3cTed] is offline  
Old 12-14-2004, 03:53 PM   #2 (permalink)
NamePros Regular
Join Date: Oct 2003
Location: Sweden
Posts: 395
cerebus has a spectacular aura aboutcerebus has a spectacular aura about
 


Animal Rescue Wildlife Animal Cruelty
hotscripts.com ... select the language you want and search for 'email form' and you are sure to find dozens and dozens of scripts that does what you want. If you have no possibility or knowledge to install scripts on your own server there are loads of remotely hosted services that would do the job, biggest provider being bravenet.com
cerebus is offline  
Old 12-14-2004, 04:00 PM   #3 (permalink)
Senior Member
Join Date: Dec 2004
Location: Florida
Posts: 2,627
Fewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud ofFewski has much to be proud of
 


Save The Children
HTML Forms - http://www.w3schools.com/html/html_forms.asp

PHP Forms - http://www.christian-web-masters.com...rm-script.html


Hope it helps.
Fewski is offline  
Old 12-15-2004, 07:35 AM THREAD STARTER               #4 (permalink)
New Member
Join Date: Dec 2004
Posts: 13
[InF3cTed] is an unknown quantity at this point
 



Thank you guys..
Really Appreciate it..
[InF3cTed] is offline  
Old 12-15-2004, 09:37 AM   #5 (permalink)
NamePros Member
Join Date: Dec 2004
Posts: 43
aakashvijay is an unknown quantity at this point
 



yaa.. that's very easy... even in any script u use.... as u may know about mail function of php... use variables of string type and combine all them and mail to urself
aakashvijay is offline  
Old 12-15-2004, 05:10 PM THREAD STARTER               #6 (permalink)
New Member
Join Date: Dec 2004
Posts: 13
[InF3cTed] is an unknown quantity at this point
 



Im still having trouble making it so the submit button..
emails me the details..
[InF3cTed] is offline  
Old 12-15-2004, 05:19 PM   #7 (permalink)
Account Suspended
 
tony84's Avatar
Join Date: Oct 2004
Location: Manchester, UK
Posts: 623
tony84 is on a distinguished road
 



Save this as feedback.php :

Code:
 <?
/*
    CHFEEDBACK.PHP Feedback Form PHP Script Ver 2.01.


    $Id: phpscript.txt 1.1 2003/04/17 11:53:45 chris Exp $


*/

// ------------- CONFIGURABLE SECTION ------------------------


$mailto = 'your@address.com' ;

$subject = "THE SUBJECT YOU WANT IN YOUR EMAIL" ;


$formurl = "http://yourURL.com/contact.php" ;
$errorurl = "http://YourURL.com/error.php" ;
$thankyouurl = "http://YourURL.com/thankyou.php" ;

// -------------------- END OF CONFIGURABLE SECTION ---------------

$name = $_POST['name'] ;
$email = $_POST['email'] ;
$comments = $_POST['comments'] ;
$http_referrer = getenv( "HTTP_REFERER" );

if (!isset($_POST['email'])) {
	header( "Location: $formurl" );
	exit ;
}
if (empty($name) || empty($email) || empty($comments)) {
   header( "Location: $errorurl" );
   exit ;
}

$messageproper =

	"This message was sent from:\n" .
	"$http_referrer\n" .
	"------------------------- COMMENTS -------------------------\n\n" .
	$comments .
	"\n\n------------------------------------------------------------\n" ;

mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>\nReply-To: \"$name\" <$email>\nX-Mailer: chfeedback.php 2.01" );
header( "Location: $thankyouurl" );
exit ;

?>
then make a page called contact.php and put this code in it where you want your form to be:


Code:
 <form action="feedback.php" method="post">
          <table width="209" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr> 
              <td width="88">Name:</td>
              <td width="121"><input type="text" name="name" size="34" /></td>
            </tr>
            <tr> 
              <td>Email:</td>
              <td><input type="text" name="email" size="34" /></td>
            </tr>
            <tr> 
              <td>comments:</td>
              <td><textarea cols="36" name="comments"></textarea></td>
            </tr>
            <tr> 
              <td colspan="2"><div align="center"> 
                  <input type="submit" value="Send" />
                  
                </div></td>
            </tr>
          </table>
        </form>
that should work
tony84 is offline  
Old 01-07-2005, 07:55 AM   #8 (permalink)
First Time Poster!
Join Date: Jan 2005
Posts: 1
lostinmysphereagain is an unknown quantity at this point
 



sorry to bring this back up, but this was nearly exactly what i wanted.

could you just explain to me how i would go about having the subject of the email that is sent to me selected by a dropdown box. For example, if you look at my slightly modified email submission form: http://www.ifmicecouldmovemountains.com/contact.php you can see i've put in a drop down box. How can i make whatever the user chooses the subject of the email sent to me, or better still is it possible to have the form sent to different emails depending on the item chosen from the list?


Lastly, how can you set a limit on the number of words that can be typed horizontally in the comments box.

Thanks in advance.
lostinmysphereagain is offline  
Closed Thread


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


 
All times are GMT -7. The time now is 02:30 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger