Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 09-25-2006, 05:10 PM Sending to mail!
Junior Talker

Posts: 2
Name: Chris
Trades: 0
Ok, I am using Dreamweaver and on the page I have a collection of questions with text fields next to each one. At the end of all the questions I have a button, what I want is for when the button is clicked all the information is sent to my email adress ( but with out an email message box popping up) is this doable? thanks.
ckydoofy13 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-28-2006, 09:21 PM Re: Sending to mail!
Kirtan's Avatar
Who Am I?

Posts: 376
Name: Venkat Raj
Location: Salem, South India
Trades: 3
You can do that with simple PHP script. Do you know how to setup "action" and "method" attribute of <form> tag? if you know that i can give you php script..
__________________
All the Buddhas of all the ages have been telling you a very simple fact: Be -- don't try to become.
Kirtan is offline
Reply With Quote
View Public Profile Visit Kirtan's homepage!
 
Old 09-28-2006, 10:41 PM Re: Sending to mail!
Junior Talker

Posts: 2
Name: Chris
Trades: 0
yea i do know how to use the form part and method....
ckydoofy13 is offline
Reply With Quote
View Public Profile
 
Old 09-29-2006, 07:50 PM Re: Sending to mail!
peschomd's Avatar
Experienced Talker

Posts: 32
Name: Matthew Peschong
Location: Mankato, Minnesota
Trades: 0
First, you should get phpForm (http://www.tizag.com/phpT/forms.php) or else your text form will not work.

Here's an example of a form code that I used for potential clients to contact me via my website.

-------------------

<form enctype='multipart/form-data' action='process.php' method='post'>
<table width='100%' border=1>
<table width='100%' border=1>
<tr><td bgcolor="#000000"> <b>Name:</b></td>
<td bgcolor="#000000">
<input type=text name='Name' size="33"></td></tr>
<tr><td bgcolor="#000000"> <b>Email Address:</b></td>
<td bgcolor="#000000">
<input type=text name='EmailAddress' size="33"></td></tr>
<tr><td bgcolor="#000000"> <b>Phone Number:</b></td>
<td bgcolor="#000000">
<input type=text name='PhoneNumber' size="33"></td></tr>
<tr><td bgcolor="#000000"> <b>Contact Preference:</b></td>
<td bgcolor="#000000">
<select name='ContactPreference'><option value='By Email'>By Email<option value='By Telephone'>By Telephone<option value='In Person '>In Person <option value='Other'>Other</select></td></tr>
<tr><td bgcolor="#000000"> <b>Development Project:</b></td>
<td bgcolor="#000000">
<select name='DevelopmentProject'><option value='Website Design'>Website Design<option value='Ecommerce Website'>Ecommerce Website<option value='Website Maintenance'>Website Maintenance<option value='Website Re-Design'>Website Re-Design<option value='Website Evaluation'>Website Evaluation<option value='Blog Development'>Blog Development<option value='Ebay Store Creation'>Ebay Store Creation<option value='Search Engine Optimization'>Search Engine Optimization<option value='Search Engine Submission'>Search Engine Submission<option value='MySpace Promotion'>MySpace Promotion</select></td></tr>
<tr><td bgcolor="#000000"> <b>Project Budget:</b></td>
<td bgcolor="#000000">
<select name='ProjectBudget'><option value='$0 - $250'>$0 - $250<option value='$250 - $500'>$250 - $500<option value='$500 - $750'>$500 - $750<option value='$750 - $1000'>$750 - $1000<option value='$1000 - $1500'>$1000 - $1500<option value='$1500 - $2000'>$1500 - $2000<option value='$2000 - $3000'>$2000 - $3000<option value='$3000 - $4000'>$3000 - $4000<option value='$4000 - $5000'>$4000 - $5000<option value='$5000 - $6000'>$5000 - $6000<option value='$6000 - $7000'>$6000 - $7000<option value='$7000 +'>$7000 +</select></td></tr>
<tr><td bgcolor="#000000"> <b><br>
Project Description:<br>
<span class="copyright">- Describe your project needs.<br>
-
Desired time frame?<br>
-
List any websites you want to resemble (if any)<br>
&nbsp;</span></b></td>
<td bgcolor="#000000">
<textarea name='ProjectDescription' rows=6 cols=20></textarea></td></tr>
</table>
<p align="center">
<input type='submit' value='Submit Form'><br></form>
__________________

Please login or register to view this content. Registration is FREE
- My Daily Marketing News Website

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE



peschomd is offline
Reply With Quote
View Public Profile Visit peschomd's homepage!
 
Old 09-30-2006, 02:16 AM Re: Sending to mail!
Kirtan's Avatar
Who Am I?

Posts: 376
Name: Venkat Raj
Location: Salem, South India
Trades: 3
Here is the code,
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<?php
if((isset($_POST['processed'])) && $_POST['processed'] == "yes")
{
        $message = "Name :".$name. "\n";
        $message .= "E-mail :".$email. "\n";
        $responsemsg = "Sir, \n We received your enquiry. \n 
        We will be back with relavant information ASAP. \n
        Thanks & Regards, \n
        Your Company Name";
        if(mail("support@yourcompany.com","Customer Enquiry",$message))
        {
            print "<h2> Your enquiry sent succesfully </h2>";
            mail($email, "Your Enquiry Received", $responsemsg);
        }
        else
        {
            print "<h2> Your enquiry wasn't send. Sorry! </h2>";
        }
}
?>
</head>

<body>
<form name="form1" method="post" action="index.php">
  <table width="200" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td>Name</td>
      <td><input name="name" type="text" id="name"></td>
    </tr>
    <tr>
      <td>Email</td>
      <td><input name="email" type="text" id="email"></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="Submit" value="Submit">
      <input type="reset" name="Reset" value="Reset">
      <input name="processed" type="hidden" id="processed" value="yes"></td>
    </tr>
  </table>
</form>
</body>
</html>
__________________
All the Buddhas of all the ages have been telling you a very simple fact: Be -- don't try to become.
Kirtan is offline
Reply With Quote
View Public Profile Visit Kirtan's homepage!
 
Reply     « Reply to Sending to mail!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22204 seconds with 12 queries