HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Need help with contact form
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form
View previous topic :: View next topic  
Author Message
cbz87



Joined: 14 Mar 2008
Posts: 25

PostPosted: Thu Mar 27, 2008 12:52 pm     Need help with contact form Reply with quote

This is what I'm working with:

Code:
<tr>
                          <td align="left" valign="top"><table width="100%"  border="0" cellpadding="0" cellspacing="0" class="usial">
                            <tr align="left" valign="top">
                              <td width="190" height="39"><strong>First name</strong><br>
                                <input name="text252626" type="text" class="intext" style="width:182px; height:15px" onClick="this.value=''"></td>
                              <td width="183"><strong>Phone/Fax</strong><br>
                                <input name="text25262" type="text" class="intext" style="width:182px; height:15px" onClick="this.value=''"></td>
                            </tr>
                            <tr align="left" valign="top">
                              <td height="39"><strong>Larst name</strong><br>
                                <input name="text252625" type="text" class="intext" style="width:182px; height:15px" onClick="this.value=''"></td>
                              <td><strong>Zip</strong><br>
                                <input name="text252622" type="text" class="intext" style="width:182px; height:15px" onClick="this.value=''"></td>
                            </tr>
                            <tr align="left" valign="top">
                              <td height="39"><strong>E-mail</strong><br>
                                <input name="text252624" type="text" class="intext" style="width:182px; height:15px" onClick="this.value=''"></td>
                              <td><strong>Address</strong><br>
                                <input name="text252623" type="text" class="intext" style="width:182px; height:15px" onClick="this.value=''"></td>
                            </tr>
                            <tr>
                              <td colspan="2"><strong>Message</strong><br>
                                <textarea name="textarea" class="intext" style="width:373px; height:56px; overflow:auto" onClick="this.value=''"></textarea></td>
                              </tr>
                            <tr align="right" valign="bottom">
                              <td height="25" colspan="2"><input name="reset" type="reset" style="width:45px; height:19px; background-image:url(images/clear.jpg); border:0px none; cursor:hand; cursor:pointer; margin-right:7px " value="">
                                <input name="submit22" type="submit" style="width:45px; height:19px; background-image:url(images/send.jpg); border:0px none; cursor:hand; cursor:pointer; " value=""></td>
                              </tr>


Everything is how I want it, but how can I make the submit button do the action of submitting the filled out data to an email address? I tried adding *action="mailto:email"* but that didn't work.
cbz87



Joined: 14 Mar 2008
Posts: 25

PostPosted: Thu Mar 27, 2008 1:11 pm     Reply with quote

I know I should perhaps use CGI server side to do this right, because a lot of people say the outside hosted "mailto" feature doesn't work that well?
jessnoonyes



Joined: 06 Jun 2007
Posts: 29

PostPosted: Sat Mar 29, 2008 6:19 am     Reply with quote

Here's a link to a cgi script:
http://bigbiz.net/faq/forms/forms.php

You'll have to create a cgi-bin and put the script inside of it, and probably change the permissions on the file to 755. Then put this at the top of your form:

<form method="post" action="http://www.yourwebsite.com/cgi-bin/forms.cgi" target="_top">
<input type="hidden" name="success_page" value="http://www.redirecttothispage.com">
<input type="hidden" name="sort" value="name,emailaddress,comments">
cbz87



Joined: 14 Mar 2008
Posts: 25

PostPosted: Tue Apr 01, 2008 9:31 am     Reply with quote

Okay, here's whats going on. This is the coding setup right now:

Code:
<form method="post" action="contact.cgi">
                        <tr>
                          <td align="left" valign="top"><table width="100%"  border="0" cellpadding="0" cellspacing="0" class="usial">
                            <tr align="left" valign="top">
                              <td width="190" height="39"><strong>First name</strong><br>
                                <input name="text252626" type="text" class="intext" style="width:182px; height:15px" onClick="this.value=''"></td>
                              <td width="183"><strong>Phone</strong><br>
                                <input name="text25262" type="text" class="intext" style="width:182px; height:15px" onClick="this.value=''"></td>
                            </tr>
                            <tr align="left" valign="top">
                              <td height="39"><strong>Last name</strong><br>
                                <input name="text252625" type="text" class="intext" style="width:182px; height:15px" onClick="this.value=''"></td>
                              <td><strong>Fax</strong><br>
                                <input name="text252622" type="text" class="intext" style="width:182px; height:15px" onClick="this.value=''"></td>
                            </tr>
                            <tr align="left" valign="top">
                              <td height="39"><strong>E-mail</strong><br>
                                <input name="text252624" type="text" class="intext" style="width:182px; height:15px" onClick="this.value=''"></td>
                              <td><strong>Address</strong><br>
                                <input name="text252623" type="text" class="intext" style="width:182px; height:15px" onClick="this.value=''"></td>
                            </tr>
                            <tr>
                              <td colspan="2"><strong>Message</strong><br>
                                <textarea name="textarea" class="intext" style="width:373px; height:56px; overflow:auto" onClick="this.value=''"></textarea></td>
                              </tr>
                            <tr align="right" valign="bottom">
                              <td height="25" colspan="2"><input name="reset" type="reset" style="width:45px; height:19px; background-image:url(images/Clear.jpg); border:0px none; cursor:hand; cursor:pointer; margin-right:7px " value="">
                                <input name="submit22" type="submit" style="width:45px; height:19px; background-image:url(images/Send.jpg); border:0px none; cursor:hand; cursor:pointer; " value=""> </td>
                               
                              </tr>


If you go to www.countytaxadvocates.com/contact.html and try to type anything and hit submit, it's saying there is a permissions error. I already created the contact.cgi file and uploaded it. I even set the permissions CHMOD to 755 but I'm still getting that error.. any ideas?
cbz87



Joined: 14 Mar 2008
Posts: 25

PostPosted: Tue Apr 01, 2008 3:26 pm     Reply with quote

Update:

Had to change my godaddy hosting account to deluxe for it to be able to support CGI scripts but I'm getting a new error now. -_-
anglersken



Joined: 17 Apr 2008
Posts: 3

PostPosted: Thu Apr 17, 2008 4:51 pm     Reply with quote

any interest in using php for your contact form? I've got a scipt all written if you want it
bibbyalive



Joined: 25 Apr 2008
Posts: 1

PostPosted: Fri Apr 25, 2008 12:36 am     Reply with quote

can send it to me? Send to my mail...ok? Bibby_aliveatyahoo.com
Thanks...
Im using dreamweaver to create contact form...but click submit my email cannot recieved the form. I save it in html format.I try many times already but still cannot..so hope can see ur coding and know where is wrong...
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial