[ic] refer to a friend - IC developers please add example to demo

Russ Mann interchange-users@interchange.redhat.com
Sat Feb 23 23:13:01 2002


Hello,

There needs to be <form> tags.  Here's a rehash of that code - maybe IC
developers could add it to the demo.

This goes in flypage.html.  Replace the /pics/anirec.gif with a graphic on
your site.

<form action="[process-target]" method="POST">
<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="image" name="submit" src="/pics/anirec.gif" width="160"
height="31" border="0" value="Recommend A Friend-->>" align="center">
</form>


This is the form on "emailafriend.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]<p>
Click here for more information:<br>
http://domain.com/cgi-bin/foundation/[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>


This is on "emailafriend2.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://domain.com/cgi-bin/foundation/[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://domain.com/cgi-bin/foundation/[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://domain.com/cgi-bin/foundation/[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>