I have a newsletter signup box in the footer of my store. It is just the default one built into x-cart.
When someone signs up and hits send ... you will see this in the URL:
/home.php?mode=subscribed&email=jacob32344%40gmail. com
Instead of returning the person back to the homepage (where they signed up) ... how can I add a redirect so after the user hits send they will be taking to a new URL (like a thank you page I've built with a discount code on it) ?
Here is my current news.tpl code
Code:
{*
$Id: news.tpl,v 1.5 2008/10/29 16:50:11 max Exp $
vim: set ts=2 sw=2 sts=2 et:
*}
{if $active_modules.News_Management}
{insert name="gate" func="news_exist" assign="is_news_exist" lngcode=$shop_language}
{if $is_news_exist}
{capture name=menu}
<!-- <div class="news item">
{* include file="today_news.tpl" *}
</div>-->
{insert name="gate" func="news_subscription_allowed" assign="is_subscription_allowed" lngcode=$shop_language}
{if $is_subscription_allowed}
<form id="subscribe_form" action="news.php" name="subscribeform" method="post">
<input type="hidden" name="subscribe_lng" value="{$store_language|escape}" />
Sign-up for our emails and get special coupon codes, advance sale notices and more.
<div id="subscribe_email">
<div style="padding: 6px 0px;">
{$lng.lbl_your_email}
<input type="text" class="text2" name="newsemail" />
</div>
</div>
{if $active_modules.Image_Verification && $show_antibot.on_news_panel eq 'Y'}
{include file="modules/Image_Verification/spambot_arrest.tpl" mode="simple_column" id=$antibot_sections.on_news_panel}
{/if}
<div><a class="button21" href="javascript:document.getElementById('subscribe_form').submit();"><span class="button_right">{$lng.lbl_subscribe}</span></a></div>
{* include file="customer/buttons/subscribe_menu.tpl" style="button" type="input" additional_button_class="menu-button" *}
</form>
{/if}
{/capture}
{include file="customer/menu_dialog.tpl" title=$lng.lbl_newsletter content=$smarty.capture.menu additional_class="menu-news"}
{/if}
{/if}