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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Need help getting a form to email the info to me...
Old 07-07-2008, 01:03 PM Need help getting a form to email the info to me...
Average Talker

Posts: 24
Name: Stephen Self
Trades: 0
I am doing a website for a friend, and have a Contact Us page that I created a form on with DreamWeaver. How do I get it to send me an email with the results?

I can send the html file for you to look at if needed.

Thanks!
StephenSelf is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-07-2008, 01:16 PM Re: Need help getting a form to email the info to me...
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
The best way to do this is with a server-side code such as PHP
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-07-2008, 01:20 PM Re: Need help getting a form to email the info to me...
Average Talker

Posts: 24
Name: Stephen Self
Trades: 0
OK, I was just reading about that. Here is my question now. In Dreamweaver, I have the form fields created, but where exactly do I add the <form> tag? Here is this section of code...

Code:
<table width="221" border="0" align="center">
                    <tr>
                      <td colspan="2">
                        <div align="right"> 
                          Name
                            <input type="text" name="Name" id="Name">
                          </div></td></tr>
                    <tr>
                      <td colspan="2" align="right"><div align="right">Phone
                        <input type="text" name="Phone #" id="Phone #">
                      </div></td>
                    </tr>
                    <tr>
                      <td colspan="2" align="right"><div align="right">Email
                        <input type="text" name="Email" id="Email">
                      </div>
                      </label></td>
                    </tr>
                    <tr>
                      <td colspan="2" align="right">&nbsp;</td>
                    </tr>
                    <tr>
                      <td colspan="2" align="center"><span class="style6">Let us know how you found us!</span></td>
                    </tr>
                    
                    <tr>
                      <td width="110" align="right"><label>
                        <input type="checkbox" name="Google" id="Google">
                      </label></td>
                      <td width="101" align="left">Google</td>
                    </tr>
                    <tr>
                      <td align="right"><label>
                        <input type="checkbox" name="Yahoo" id="Yahoo">
                      </label></td>
                      <td align="left">Yahoo</td>
                    </tr>
                    <tr>
                      <td align="right"><input type="checkbox" name="Referral" id="Referral">
                          <label></label></td>
                      <td align="left">Referral</td>
                    </tr>
                    <tr>
                      <td align="right"><input type="checkbox" name="Radio" id="Radio"></td>
                      <td align="left">Radio</td>
                    </tr>
                    <tr>
                      <td height="22" align="right"><input type="checkbox" name="Print Ad" id="Print Ad"></td>
                      <td align="left">Print Ad</td>
                    </tr>
                  </table>
                  <p>&nbsp;</p>
                  <p>&nbsp;</p>
                  <p align="center">Please enter your comments or questions in the box below.</p>
                  <p align="center"><br>
                  </p>
                  <p align="center">
                    <textarea name="textarea" id="textarea" cols="25" rows="5"></textarea>
                  </p>
                  <p>&nbsp;</p>
                  <p align="center">
                    <input type="submit" name="Submit2" id="Submit" value="Submit">
                  </p></td>
              </tr>
              </tbody>
            </table>            </td>
Thanks!

Last edited by StephenSelf; 07-07-2008 at 01:22 PM..
StephenSelf is offline
Reply With Quote
View Public Profile
 
Old 07-07-2008, 01:38 PM Re: Need help getting a form to email the info to me...
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
You would wrap a form tag around the entire table you posted.
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 07-07-2008, 01:45 PM Re: Need help getting a form to email the info to me...
Average Talker

Posts: 24
Name: Stephen Self
Trades: 0
Great.

Is this the correct way to use this tag?

Code:
<form      action="contact-us.php"
    method="get">

</form>
Then it will send the info to "contact-us.php" and that file will determine what to do with the information (such as email it)?

Also, would I use "get" or "post"?

Correct?
StephenSelf is offline
Reply With Quote
View Public Profile
 
Old 07-07-2008, 01:47 PM Re: Need help getting a form to email the info to me...
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
That looks correct to me. But you should use "post" instead of "get".
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 07-07-2008, 01:50 PM Re: Need help getting a form to email the info to me...
Average Talker

Posts: 24
Name: Stephen Self
Trades: 0
Awesome! Thanks for all the help. I will post again if I have any other questions.
StephenSelf is offline
Reply With Quote
View Public Profile
 
Old 07-07-2008, 01:57 PM Re: Need help getting a form to email the info to me...
Average Talker

Posts: 24
Name: Stephen Self
Trades: 0
Here's a quick question. From the first batch of code that I posted, where exactly do I add the <form> tag? When I add it in Dreamweaver, it messes up the whole positioning of things for some reason.
StephenSelf is offline
Reply With Quote
View Public Profile
 
Old 07-07-2008, 02:06 PM Re: Need help getting a form to email the info to me...
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
Should be like this:

Code:
<form>
<table width="221" border="0" align="center">
                    <tr>
                      <td colspan="2">
                        <div align="right"> 
                          Name
                            <input type="text" name="Name" id="Name">
                          </div></td></tr>
                    <tr>
                      <td colspan="2" align="right"><div align="right">Phone
                        <input type="text" name="Phone #" id="Phone #">
                      </div></td>
                    </tr>
                    <tr>
                      <td colspan="2" align="right"><div align="right">Email
                        <input type="text" name="Email" id="Email">
                      </div>
                      </label></td>
                    </tr>
                    <tr>
                      <td colspan="2" align="right">&nbsp;</td>
                    </tr>
                    <tr>
                      <td colspan="2" align="center"><span class="style6">Let us know how you found us!</span></td>
                    </tr>
                    
                    <tr>
                      <td width="110" align="right"><label>
                        <input type="checkbox" name="Google" id="Google">
                      </label></td>
                      <td width="101" align="left">Google</td>
                    </tr>
                    <tr>
                      <td align="right"><label>
                        <input type="checkbox" name="Yahoo" id="Yahoo">
                      </label></td>
                      <td align="left">Yahoo</td>
                    </tr>
                    <tr>
                      <td align="right"><input type="checkbox" name="Referral" id="Referral">
                          <label></label></td>
                      <td align="left">Referral</td>
                    </tr>
                    <tr>
                      <td align="right"><input type="checkbox" name="Radio" id="Radio"></td>
                      <td align="left">Radio</td>
                    </tr>
                    <tr>
                      <td height="22" align="right"><input type="checkbox" name="Print Ad" id="Print Ad"></td>
                      <td align="left">Print Ad</td>
                    </tr>
                  </table>
                  <p>&nbsp;</p>
                  <p>&nbsp;</p>
                  <p align="center">Please enter your comments or questions in the box below.</p>
                  <p align="center"><br>
                  </p>
                  <p align="center">
                    <textarea name="textarea" id="textarea" cols="25" rows="5"></textarea>
                  </p>
                  <p>&nbsp;</p>
                  <p align="center">
                    <input type="submit" name="Submit2" id="Submit" value="Submit">
                  </p></td>
              </tr>
              </tbody>
            </table> 

           </form>
                </td>
There was an extra "</td>" in the code you posted. I am not sure where it came from, but you shouldn't have to wrap the form around that part.

Also, have you thought about using css instead of tables???
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 07-07-2008, 02:25 PM Re: Need help getting a form to email the info to me...
Average Talker

Posts: 24
Name: Stephen Self
Trades: 0
Quote:
Originally Posted by angele803 View Post

There was an extra "</td>" in the code you posted. I am not sure where it came from, but you shouldn't have to wrap the form around that part.

Also, have you thought about using css instead of tables???
OK, i got the correct placement of the code.

I am not real familiar with using CSS. Is it easier to use? What are the benefits?
StephenSelf is offline
Reply With Quote
View Public Profile
 
Old 07-08-2008, 02:03 PM Re: Need help getting a form to email the info to me...
angele803's Avatar
Perfectly Imperfect

Posts: 1,772
Name: Stephanie
Location: Oklahoma
Trades: 2
Laying your site out with CSS is much easier and more flexible than tables. That is, of course, once you get a good handle on css. CSS does have a bit of a learning curve to it, but it really is not hard. Once you understand how it works, it will make your life a lot easier.
Plus, laying things out with CSS helps your sites to be more accessible. It also helps keep your site compliant with today's web standards.
I would encourage every web designer/developer to learn CSS.
You can start learning about it at W3Schools.
This book and this book also really helped me learn CSS too.
Good luck with your site, and feel free to post with more questions along the way!
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need help getting a form to email the info to me...
 

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.47578 seconds with 12 queries