PDA

View Full Version : HTML Form Usage


tubago
06-07-2005, 02:19 PM
How do I create a form to send the data to a file or e-mail using fronpage 2003.
I've tried several times using guides, but i can't do this right.

Greg
06-07-2005, 02:35 PM
You need server side processing with php or asp of another scripting language I'd think.

There may be a java client side solution, but with out alot of details, it's hard to say.

tubago
06-07-2005, 06:36 PM
ok. I'll see if i can find any java application. Thanks

Zero Tolerance
06-09-2005, 08:51 AM
What data are you trying to collect?

Here is a simple form using option boxes, textboxes and a clear & submit button. I wrote this simple form to use on a few sites that I run.

It could be alot fancier with more bells and whistels...but it gets the job done and I wrote it in about 10 minutes.


<html>
<head>
<title>ATVAlliance.Com Affiliate Application</title>
</head>
<body bgcolor="#000099"><font color="#FFFFFF">
<center>
<h1>ATVAlliance.Com Affiliate Application</h1>


There is no cost to participate in our affiliate program at this time!
<br>
However there is a limited number of free affiliate positions available.
<br>
If you are interested in advertising your site, please contact the owner
<br>
at <a href="mailto:speeddemon@atvalliance.com?subject=Alliance Advertising Inquiry">speeddemon@atvalliance.com</a> and a reply via email with
<br>
an advertising rate schedule will be returned to you promptly.
<br>
<br>
<br>
<br>

<!-- This is where the actual form content is collected AND submitted to the email address you supply in the first "form action"

Everything is really simple to understand and is an easy way to gather info from a person. HOWEVER the person must have Outlook or Outlook Express or SOME kind of email pgrogram running as default for this to work.

Maybe this is what n0pp was meaning.....as far as the php or ASP...to actually act as the mail server and send the mail to you instead of it using the client side default emailer.

goodluck!
ZeroTolerance
-->

<form action="mailto:webmaster@atvalliance.com?subject=ATVAllian ce.Com Affiliate Application" method=post enctype="text/plain">
<tr>
First name: <input type="text" name="First Name" size=15 value="">

Last name: <input type="text" name="Last Name" size=15 value="">
<br>
Site URL: <input type="text" name="Site URL" size=48 value="">
<br>
Contact eMail: <input type="text" name="E-mail Address" size=42 value="">
</tr>
<br>
<br>
<tr>
<textarea name="comments"rows="15" cols="50"> Please use this space to provide us with some details about why you want to be an affiliate.

Please delete the content of this window to allow more room for your details.</textarea>
<br>
<br>
Your Site is:
<br>
<SELECT name="Site is " size="1"><OPTION SELECTED VALUE="ATV Club Related">ATV Club Related
<OPTION VALUE="ATV Enthusiest Related"> ATV Enthusiest Related
<OPTION VALUE="ATV Dealer/Parts/Wholesaler Related"> ATV Dealer/Parts/Wholesaler Related
<OPTION VALUE="Non-ATV Related"> Non-ATV Related
</SELECT>
<br>
<br>
I found the Alliance by means of:
<br>
<SELECT name="Found the Alliance by" size="1"><OPTION SELECTED VALUE="Search Engine">Search Engine
<OPTION VALUE="Link from another site"> Link from another site
<OPTION VALUE="Referred to by a member of ATV Alliance"> Referred to by a member of ATV Alliance
<OPTION VALUE="Word of mouth"> Word of mouth
<OPTION VALUE="ATV Alliance Trail Flyer"> ATV Alliance Trail Flyer
<OPTION VALUE="Other"> Other
</SELECT>
<br>
<br>
<br>
<input type="submit" value="Send Application" onClick="alert('Thank you. Your affiliate application has been submitted. We will review your application and contact you within five days of our receiving your application')">
<br>
<br>
<br>
<input type="reset" value="Reset">
</center>
<br>
<br>
<center>
<h1>Thank You for taking an interest in our affilate program</h1>
<font size="-1">ATV Alliance is dedicated to the advancement of ATV's and ATV related activity!</font>
</center>
</font>
</form>
</body>
</html>

tubago
06-09-2005, 08:49 PM
Thanks Zero Tolerance. That's precisely what i need.

Zero Tolerance
06-09-2005, 09:36 PM
Glad I could be of help!