[ic] refer to a friend

Russ Mann interchange-users@interchange.redhat.com
Fri Aug 17 14:40:00 2001


Sure.  This includes 3 email address enter fields, logging to a text file,
and a link to return to the original page.

Russ Mann

on flypage.html I use this code:
----------------------------------------------------------------------
**********************************************************************
----------------------------------------------------------------------
<input type="hidden" name="mv_doit" value="return">
<input type="hidden" name="mv_nextpage" value="emailafriend">
<input type="hidden" name="friend_code" value="[item-code]">
<input type="hidden" name="friend_title" value="[item-field description]">
<input type="hidden" name="friend_author" value="[item-field author]">
<input type="hidden" name="friend_covertype" value="[item-field covertype]">
<input type="hidden" name="friend_price" value="[item-field price]">
<input type="hidden" name="friend_save_dollars" value="[calc][item-field
retail]-[item-field price][/calc]">
<input type="hidden" name="friend_save_percent" value="[perl arg=sub
interpolate=1] you_save_percent ([item-field retail], [item-field
price])[/perl]">
<input type="image" name="submit" src="/pics/anirec.gif" width="160"
height="31" border="0" value="Recommend A Friend-->>" align="center">
----------------------------------------------------------------------
**********************************************************************
----------------------------------------------------------------------
(some of the you_save stuff is custom.)

emailfriend.html
----------------------------------------------------------------------
**********************************************************************
----------------------------------------------------------------------
<form action="[process-target]" method="POST">
<input type="hidden" name="mv_doit" value="return">
<input type="hidden" name="mv_nextpage" value="emailafriend2">
You're sending an email to your friend(s) with this in it:<p>
<hr color="#000000" width="85%" noshade>
Hi! I thought you'd like to see this product I found at the Koinonia House
Store!
<p>
[value friend_title]<br>
[if value friend_author]by [value friend_author][/if]<br>
[value friend_covertype]<p>
Our Price: [currency][value friend_price][/currency]!  / You Save:
[currency][value friend_save_dollars][/currency] ([value
friend_save_percent])<p>
Click here for more information:<br>
http://store.khouse.org/store/catalog/[value friend_code]?;;E
<hr color="#000000" width="85%" noshade>
<p>
<table border="0" cellspacing="1">
<tr>
<td nowrap>Your Email</td>
<td><input type="text" name="email" size="30" value="[if value
email][then][value email][/then][else][data session
username][/else][/if]"></td>
</tr>
<tr><td nowrap>Friend 1 Email</td>
<td><input type="text" name="friend1_email" size="30" value=""></td></tr>
<tr><td nowrap>Friend 2 Email</td>
<td><input type="text" name="friend2_email" size="30" value=""></td></tr>
<tr><td nowrap>Friend 3 Email</td><td><input type="text"
name="friend3_email" size="30" value=""></td>
</tr>
<tr><td nowrap>Comments</td>
<td><textarea name="friend_comments" cols="31" rows="7"
wrap="physical"></textarea></td></tr>
<tr><td></td><td><br><input type="submit" value="Recommend It!"></td></tr>
</table>
</form>
----------------------------------------------------------------------
**********************************************************************
----------------------------------------------------------------------

emailfriend2.html

----------------------------------------------------------------------
**********************************************************************
----------------------------------------------------------------------
<!--
[if value friend1_email]
[tag log products/email_friends.txt][value email]	[value friend1_email]
[value friend_code][/tag]
[email
to="[value friend1_email]"
subject="[value friend_title]"
from="[value email]"
reply="[value email]"]
Hi! I thought you'd like to see this product I found at the Koinonia House
Store!

[value friend_title]
[if value friend_author]by [value friend_author][/if]
[value friend_covertype]

Our Price: [currency][value friend_price][/currency]!  / You Save:
[currency][value friend_save_dollars][/currency] ([value
friend_save_percent])

Click here for more information:
http://store.khouse.org/store/catalog/[value friend_code]?;;E

Comments:
[value friend_comments]

[/email]
[/if]
[if value friend2_email]
[tag log products/email_friends.txt][value b_email]	[value friend2_email]
[value friend_code][/tag]
[email
to="[value friend2_email]"
subject="[value friend_title]"
from="[value email]"
reply="[value email]"]
Hi! I thought you'd like to see this product I found at the Koinonia House
Store!

[value friend_title]
[if value friend_author]by [value friend_author][/if]
[value friend_covertype]

Our Price: [currency][value friend_price][/currency]!  / You Save:
[currency][value friend_save_dollars][/currency] ([value
friend_save_percent])

Click here for more information:
http://store.khouse.org/store/catalog/[value friend_code]?;;E

Comments:
[value friend_comments]

[/email]
[/if]
[if value friend3_email]
[tag log products/email_friends.txt][value b_email]	[value friend3_email]
[value friend_code][/tag]
[email
to="[value friend3_email]"
subject="[value friend_title]"
from="[value email]"
reply="[value email]"]
Hi! I thought you'd like to see this product I found at the Koinonia House
Store!

[value friend_title]
[if value friend_author]by [value friend_author][/if]
[value friend_covertype]

Our Price: [currency][value friend_price][/currency]!  / You Save:
[currency][value friend_save_dollars][/currency] ([value
friend_save_percent])

Click here for more information:
http://store.khouse.org/store/catalog/[value friend_code]?;;E

Comments:
[value friend_comments]

[/email]
[/if]
-->
<table border="0" width="425" cellspacing="1" cellpadding="0">
<tr>
<td width="100%">
<tr>
<td>An Email was sent to
[if value friend1_email][value friend1_email][/if]
[if value friend2_email], [value friend2_email][/if]
[if value friend3_email], and [value friend3_email][/if]
 with these contents:
<p>
<hr color="#000000" width="85%" noshade>
Hi! I thought you'd like to see this product I found at the Koinonia House
Store!<p>
[value friend_title]<br>
[if value friend_author]by [value friend_author][/if]<br>
[value friend_covertype]<p>
Our Price: [currency][value friend_price][/currency]!  / You Save:
[currency][value friend_save_dollars][/currency] ([value
friend_save_percent])<p>
Click here for more information:<br>
http://store.khouse.org/store/catalog/[value friend_code]?;;E
<p>Comments:<p>
[value friend_comments]
<hr color="#000000" width="85%" noshade>
<p>
[page index]Continue Shopping</a><p>
<a mv="page" mv.href="[value friend_code]" href="[value friend_code].html">
Back To [value friend_title]</a><p>
</td>
</tr>
</table>

----------------------------------------------------------------------
**********************************************************************
----------------------------------------------------------------------
-----Original Message-----
From: interchange-users-admin@interchange.redhat.com
[mailto:interchange-users-admin@interchange.redhat.com]On Behalf Of
Corey Gilmore
Sent: Friday, August 17, 2001 11:06 AM
To: interchange-users@anthrax.interchange.redhat.com
Subject: [ic] refer to a friend


Has anyone ever written a refer to a friend type link that accepts some
comments, an email, etc, and then sends a message describing the current
page?  or something similar to that?

thanks
.cfg

_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users