Jump to content

Newsletter block


ande85

Recommended Posts

I´ve added the newsletter block the other day and customized it with some CSS. But when I try to fill in an email adress and press send it only reload the index.php page on the site.


does any body have any idea of what could be wrong? thanks for your reply!

<!-- Block Newsletter module-->


{l s='Newsletter' mod='blocknewsletter'}

Text

{if $msg}

{$msg}
{/if}

<form action="{$base_dir}" method="post">


<input type="text" name="email" size="18" value="{if $value}{$value}{else}{l s='your e-mail' mod='blocknewsletter'}{/if}">





{l s='Subscribe' mod='blocknewsletter'}
{l s='Unsubscribe' mod='blocknewsletter'}




<input type="submit" value="" class="button_mini_newsletter" name="submitNewsletter" />

</form>



<!-- /Block Newsletter module-->

Link to comment
Share on other sites

Your form says

<form action="{$base_dir}" method="post">

and due to your action is the route to your web... the code provided is doing exactly this, reloade the page.

Compare differences with the original module.


The original module has the same code. The problem isn´t really that the page is reloaded, the problem is that the email adress that I put in don´t get added.
Link to comment
Share on other sites

  • 5 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...