Sayln
12-05-2005, 04:32 PM
Hi all :) First Post!
Well, I just need some help towards making a Form. I've been able to make the text boxes etc., but I'm a totall newb when it comes to the rest, such as a submit button etc.
What I want is a Submit button that does something as if you were creating an account! BUT, do i need some sort of database to do that? And if so how do I go about doing that?
Thanks for any help/links or tutorials!
Rik
Jittor
12-05-2005, 04:36 PM
To store customer info you would need a database but you can have the form email you all the info just as well. Are you using a program like Dreamweaver or Frontpage or are you just scripting cold.
Sayln
12-05-2005, 04:39 PM
As I said, I'm totally new, so I'm afraid the Jargon will have to be explained. I would like to use Dreamweaver, but I don't own it. I'm currently using (waits for everyone to burst into laughter) Freewebs, but it's really just to get me started etc.
What should I be using, keeping in mind I am a 16 year old teenager with no money and trying to make do with the best he can.
Jittor
12-05-2005, 04:54 PM
You dont really have to use any program. You can even use windows notebook and save it as an html file but that is tuff to do. I use and recomend Dreamweaver (check out their site for a free demo and don't get overwhelmed people will help you learn how to use it - then save and buy it if you like it.) I have used Frontpage but I hate it. Freeware is all good as long as you can freely create what you want and actually edit the html code. If you can do that let me know and I will past up some code to a simple contact form that will email you when the user/person clicks submit.
Sayln
12-05-2005, 04:57 PM
That would be cool. I find the easiest way to learn code is to scan through it and play around with it to see what it does. It's fun :)
Paste away, if you wouldn't mind!
EDIT: Also, just wondering, on FreeWebs, when creating a new page you can choose whether you want it to be a Raw HTML page, where it just gives you a blank page and tells you to get on with it.
Would it be worth me learnging PHP or another coding script thats more advanced, and enter it there, or would it only accept HTML do you think?
And is PHP hard to learn? My friends tell me it is...
welsh
12-05-2005, 05:12 PM
php is a learning curve, im in the middle of learning it now. its like learning how to code html when you first start. also you will need some sort of database to store the info that say they were creating an account for a website. Also you would need some sort of server side language to do that (php, etc). you can check out http://www.hotscripts.com for some scripts that are very easy to use.
Jittor
12-05-2005, 05:14 PM
Scripts like PHP and Javascript can intertwine or help preform certian functions within your html that would normally not be accomplished through html. So yes learning php, css, java or another language is going to help but I would stick to learning html first. See, with DreamWeaver (DW) you can flip from design mode (just show the good stuff like all your pictures, really what you hope to see when is it posted to the web) and code view (which is just the code). It's good to have both sometimes, helps to learn whats really going on.
Here is some code for the form - it's long but copy and paste it - it already starts with the BODY tag and closes with the BODY tag ( <body> all the stuff on your page inbetween the body tags</body> ):
<BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<table width="600" height="563" border="0" align="center">
<tr>
<td></td>
</tr>
<tr>
<td height="532"> <form action="mailto:youremailhere@whetever.com" method="post" enctype="text/plain" name="Advertising" id="Advertising">
<table width="97%" border="2" align="center" cellspacing="1" bordercolor="#FFFF99">
<tr>
<td bgcolor="#FFFFCC"> <fieldset>
<legend><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Contact
Information - Parts marked <font color="#FF0000">*</font> must
be filled out in order to Submit Form!</font></legend>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="5">
<tr>
<td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Contact
Name<font color="#FF0000">*</font></font> </div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="Contact Name" type="text" id="Contact Name4" size="25" maxlength="50">
</font></td>
</tr>
<tr>
<td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Address<font color="#FF0000">*</font></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="Address" type="text" id="Address3" size="30" maxlength="70">
</font></td>
</tr>
<tr>
<td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">City<font color="#FF0000">*</font>
</font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="City" type="text" id="City3" size="25" maxlength="50">
</font></td>
</tr>
<tr>
<td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">State<font color="#FF0000">*</font></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<select name="select" id="select6">
<option value="AK">ALASKA </option>
<option value="AL">ALABAMA</option>
<option value="AR">ARKANSAS</option>
<option value="AZ">ARIZONA </option>
<option value="CA">CALIFORNIA </option>
<option value="CO">COLORADO </option>
<option value="CT">CONNECTICUT </option>
<option value="DC">DIST OF COLUMBIA </option>
<option value="DE">DELAWARE </option>
<option value="FL">FLORIDA </option>
<option value="GA">GEORGIA </option>
<option value="HI">HAWAII</option>
<option value="IA">IOWA</option>
<option value="ID">IDAHO</option>
<option value="IL">ILLINOIS</option>
<option value="IN">INDIANA</option>
<option value="KS">KANSAS</option>
<option value="KY">KENTUCKY</option>
<option value="LA">LOUISIANA</option>
<option value="MA">MASSACHUSETTS</option>
<option value="MD">MARYLAND </option>
<option value="ME">MAINE</option>
<option value="MI">MICHIGAN </option>
<option value="MN">MINNESOTA</option>
<option value="MO">MISSOURI</option>
<option value="MS">MISSISSIPPI</option>
<option value="MT">MONTANA</option>
<option value="NC">NORTH CAROLINA </option>
<option value="ND">NORTH DAKOTA </option>
<option value="NE">NEBRASKA</option>
<option value="NH">NEW HAMPSHIRE </option>
<option value="NJ">NEW JERSEY </option>
<option value="NM">NEW MEXICO </option>
<option value="NV">NEVADA</option>
<option value="NY">NEW YORK </option>
<option value="OH">OHIO </option>
<option value="OK">OKLAHOMA</option>
<option value="OR">OREGON </option>
<option value="PA">PENNSYLVANIA</option>
<option value="RI">RHODE ISLAND </option>
<option value="SC">SOUTH CAROLINA </option>
<option value="SD">SOUTH DAKOTA </option>
<option value="TN">TENNESSEE </option>
<option value="TX">TEXAS</option>
<option value="UT">UTAH</option>
<option value="VA">VIRGINIA</option>
<option value="VT">VERMONT</option>
<option value="WA">WASHINGTON</option>
<option value="WI">WISCONSIN</option>
<option value="WY">WYOMING</option>
<option value="WV">WEST VIRGINIA </option>
<option value="Please Select" selected>-- Please Select
--</option>
</select>
</font></td>
</tr>
<tr>
<td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Zip
Code<font color="#FF0000">*</font></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="Zip Code2" type="text" id="Zip Code22" size="15" maxlength="15">
</font></td>
</tr>
<tr>
<td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Phone<font color="#FF0000">*</font></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="Phone" type="text" id="Phone3" size="15" maxlength="20">
</font></td>
</tr>
<tr>
<td><div align="right"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Email<font color="#FF0000">*</font></font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="Email" type="text" id="Email3" size="40" maxlength="70">
</font></td>
</tr>
<tr>
<td><div align="right">Number of Dogs</div></td>
<td><label for="textfield"></label> <input type="text" name="textfield" id="textfield"></td>
</tr>
<tr>
<td><div align="right">
<label for="label2">Name of Dogs</label>
</div></td>
<td><label for="label"></label> <input type="text" name="textfield2" id="label"></td>
</tr>
</table>
<p></p>
</fieldset></td>
</tr>
<tr>
<td height="196" bgcolor="#FFFFCC"> <fieldset>
<legend><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Questions
and Comments</font></legend>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif"><br>
</font>
<table width="95%" border="0" align="center" cellspacing="5">
<tr>
<td width="100%"><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Please
add additional comments or questions in the space provided
below.
<textarea name="Please add additional comments or questions in the space provided below." cols="40" rows="4" id="textarea4"></textarea>
</font></div></td>
</tr>
</table>
<p align="center">
<label>
<input name="Submit" type="submit" onClick="MM_validateForm('Contact Name4','','R','Address3','','R','City3','','R','Zip Code22','','R','Phone3','','R','Email3','','R');return document.MM_returnValue" value="Submit">
</label>
<label>
<input name="Clear Form" type="reset" id="Clear Form2" value="Reset">
</label>
</p>
</fieldset></td>
</tr>
</table>
</form></td>
</tr>
</table>
</BODY>
Got to go -
welsh
12-05-2005, 05:20 PM
also i have to say learn css. it is really helpfull for designing websites. making the code less crowded and such.