Building a form

This is a discussion on "Building a form" within the Web Page Design section. This forum, and the thread "Building a form are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 30th, 2006, 02:39
Junior Member
Join Date: Nov 2005
Location: washington state/Hawaii
Age: 25
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Building a form

yes I do know, very very simple. i know how to but what i am having problem with is doing the submit and reset. do I use mailto or some other way? what is the right way to do it? I dont want to use some site that automatically does it for you Id like to build it myself. how can I do this? I dont want the users information to be on the web at all. So I want it secured. can anyone help me?
Reply With Quote

  #2 (permalink)  
Old Jun 30th, 2006, 03:24
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Building a form

You need a server side language such as PHP, if you have this enabled i would be happy to explain how to do it for you.
Reply With Quote
  #3 (permalink)  
Old Jul 4th, 2006, 17:44
Junior Member
Join Date: Jul 2006
Location: Florida
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Building a form

I would also appreciate it to because i am very new to PHP and could use some advice from someone.
Reply With Quote
  #4 (permalink)  
Old Jul 4th, 2006, 18:14
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Building a form

You want the information that the user inputs in a form sent to an email address?
Reply With Quote
  #5 (permalink)  
Old Jul 4th, 2006, 19:16
Junior Member
Join Date: Jul 2006
Location: Florida
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Building a form

Yes! that's exactly what i'm looking for! i have set up the text areas but can't seem to get the information to be set to an e-mail address. http://www.laketalquinfishing.com/ Check out the "Contact Us" form. That's what i need help with.

Thanks
Reply With Quote
  #6 (permalink)  
Old Jul 4th, 2006, 23:57
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Building a form

I noticed your form uses an action of asp.
Code: Select all
action="contact.asp"
I dont do ASP so make sure your server can support php first.
Reply With Quote
  #7 (permalink)  
Old Jul 7th, 2006, 19:24
Junior Member
Join Date: Nov 2005
Location: washington state/Hawaii
Age: 25
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Building a form

my server supports PHP, i got an email from whoever tested out my form and it works apprantly but i dont have a working copy so im a little confused, im going to post my code
Reply With Quote
  #8 (permalink)  
Old Jul 7th, 2006, 19:24
Junior Member
Join Date: Nov 2005
Location: washington state/Hawaii
Age: 25
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Building a form

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
body {
background-image: url("g8pat04.gif");
    font: 12px/24px "Georgia", "Trebuchet MS", Arial, Helvetica, sans-serif;
    color: #000000;
}

#title {
    width: 330px;
    height: 26px;
    color: #000000;
    font: bold 15px/18px "Georgia", "Trebuchet MS", Arial, Helvetica, sans-serif;
    padding-top: 5px;
    background: transparent url("g8pat04.gif") no-repeat;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
}

form {
    width: 335px;
}

.col1 {
    text-align: right;
    width: 135px;
    height: 31px;
    margin: 0;
    float: left;
    margin-right: 2px;

}

.col2 {
    width: 195px;
    height: 31px;
    display: block;
    float: left;
    margin: 0;
    
}

.col2comment {
    width: 195px;
    height: 98px;
    margin: 0;
    display: block;
    float: left;
}

.col1comment {
    text-align: right;
    width: 135px;
    height: 98px;
    float: left;
    display: block;
    margin-right: 2px;
    
}

div.row {
    clear: both;
    width: 335px;
}

.submit {
    height: 29px;
    width: 330px;
    background: url(bg_submit.gif) no-repeat;
    padding-top: 5px;
    clear: both;
} 

.input {
    background-image: url("g8pat04.gif");
    font: 11px/14px "Lucida Grande", "Trebuchet MS", Arial, Helvetica, sans-serif;
    color: #000000;
    margin: 4px 0 5px 8px;
    padding: 1px;
    border: 1px solid #000000;
}

.textarea {
    border: 1px solid #000000;
    background-image: url("g8pat04.gif");
    font: 11px/14px "Lucida Grande", "Trebuchet MS", Arial, Helvetica, sans-serif;
    color: #000000;
    margin: 4px 0 5px 8px;
}

</style>
</head>

<body>
 <?php

if (isset($_POST['emailSubmit']))
      mail($_POST['emailTo'], $_POST['emailSubject'], $_POST['emailBody']);

?>
</p>
<form method="POST" action="<?php echo $_SERVER['PHPSELF']; ?>
<input type="hidden" name="emailTo" value="mst0ke@yahoo.com" />

  <p>&nbsp;</p>
<div id="title">CLASS SIGN UP </div>
<div class="row">
  <label class="col1">Full Name:&nbsp;&nbsp;</label>
<span class="col2"><input name="name" class="input" type="text" id="name" size="20" tabindex="1"  /></span>

</div>
<div class="row">
  <label class="col1">Address:&nbsp;&nbsp;</label>
  <span class="col2">
  <input name="address" class="input" type="text" id="address" size="25" tabindex="2" />
</span>
</div>
<div class="row"><label class="col1">City:&nbsp;&nbsp;</label>
<span class="col2"><input name="city" class="input" type="text" id="city" value="" size="2" tabindex="3" /></span>
</div>
<div class="row"><label class="col1">State:&nbsp;&nbsp;</label>
<span class="col2"><input name="state" class="input" type="text" id="state" value="" size="9" tabindex="4" /></span>
</div>
<div class="row"><label class="col1">Age:&nbsp;&nbsp;</label>
<span class="col2"><input name="age" class="input" type="text" id="age" value="" size="3" tabindex="5" /></span>
</div>
<div class="row"></div>

<div class="row"><label class="col1comment">Comment:&nbsp;&nbsp;</label>
<span class="col2comment"><textarea cols="20" class="textarea" rows="4" name="comment" id="comment" tabindex="6" ></textarea></span>
</div>
<div align="center" class="submit">
  <input type="submit" name="emailSubmit" value="Submit" />
  </form>
</div>
</body>
</html>
Reply With Quote
  #9 (permalink)  
Old Jul 7th, 2006, 19:26
Junior Member
Join Date: Nov 2005
Location: washington state/Hawaii
Age: 25
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Building a form

i just noticed that it took out my email that i had there under the email to . is it complete?
Reply With Quote
Reply

Tags
building, form

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Building Experience thegibb Free Web Site Critique 7 Jul 20th, 2007 20:34
The Building Experience thegibb E-Commerce and Business 1 Jul 10th, 2007 21:17
Need help building a forum for myself. booogada Scripts and Online Services 3 Apr 11th, 2007 17:25
new to website building - please help daznmaz Starting Out 9 Apr 2nd, 2007 23:51
Building a WEB SITE marwen1 Web Page Design 34 Aug 3rd, 2006 08:55


All times are GMT. The time now is 17:55.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43