logo
g Text Version
Auto
Beauty & Self
Books & Music
Career
Computers
Education
Family
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
Money
News & Politics
Relationships
Religion & Spirituality
Society & Culture
Sports
Travel & Leisure
TV & Movies

dailyclick
Bored? Games!
Postcards
Astrology
Take a Quiz
Rate My Photo

new
Jokes & Riddles
Astronomy
Philosophy
Public Health
Canadian Culture


dailyclick
All times in EST

Autism Spectrum Disorders: 4:00 PM

Full Schedule
g
g ASP Site
Editor Wanted
BellaOnline's ASP Editor

g

Creating the Form for Send-A-Friend
Guest Author - Lisa Shea

Make sure you read Part One first, which describes how to set up the javascript and code to actually make the send-a-friend button. The code on this page is for making the form the user fills out, with their email address, their friend's email address, and any comments.

Ignore the *******s, those are only there to show you what you should put into your own form.

*********************************

Want to share an interesting article with a friend? Just fill out this quick form to send it along to them! The email addresses you enter are COMPLETELY PRIVATE and are not stored in any way.

<%
OrigURL = Request("URL")
%>

<table cellspacing=0 cellpadding=2 border=0 bgcolor="#9999FF"><TR><TD>
<TABLE bgcolor="#FFFFFF"><TR><TD>

<CENTER>

<form name=friend action="processFriend.asp" method="post">
<input type="hidden" name="url" value="<%=OrigURL%>">

<TABLE><TR><TD align="right">
Your email:</TD><TD>
<input type="text" size=25 name="sender">
</TD></TR><TR><TD align="right">
Your friend's email:
</TD><TD>
<input type="text" size=25 name="receiver"><br>
</TD></TR><TR><TD align="right" valign="top">
Comments:
</TD><TD>
-TEXTAREA- name="comment" rows=10 cols=50>
-TEXTAREA->
</TD></TR></TABLE>
<P>
<input type="image" src="email.jpg" name="submit" value="Submit">
</TD></TR></TABLE>
</TD></TR></TABLE>
</form>

<P>
<A HREF=><%=OrigURL%>>Back to the Original Article</A>
<P>

************************************

Most of this page is just HTML, so check out our HTML Site if you have questions about how a form works. What we add in to it is the actual URL that the person is going to forward along to their friend. Don't forget to have an email.jpg image on your website!

Now it's time to Create the ProcessFriend.asp file - the code that will actually take all of this information and send it off to the recipient.

Introduction to ASP Ebook

Download this ebook to get everything you need to know about learning ASP - from a step by step tutorial to function lists, sample code, common errors and solutions, and much more! 101 pages.

This site needs an editor - click to learn more!

RSS | Related Articles | Previous Features | Site Map


Content copyright © 2008 by Lisa Shea. All rights reserved.
This content was written by Lisa Shea. If you wish to use this content in any manner, you need written permission. Contact BellaOnline Administration for details.

Digg! g delicious Save to Del.icio.us

g


For FREE email updates, subscribe to the ASP Newsletter


Past Issues


print
Printer Friendly
bookmark
Bookmark
tell friend
Tell a Friend
forum
Forum
email
Email Editor

g features
Best uses for RSS

RSS and its future.

Force Download Dialog box with ASP

Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter


vote
Driving Amount
Much more
Slightly more
Slightly less
Much less

g


| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2008 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor