FAQ Item

« Return to FAQ database

Put subscribe form on page or another website

Paste this code into your template or into your page (in code view)

<form action="" method="post">
<input type="hidden" name="wp3_newsletter_subscribe" value="true">
<table id="newsletter_subscribe">
<tbody>
<tr id="newsletter_subscribe_name">
<th align="left">
<label for="wp3newsletter_name">Name:</label>
</th>
<td>
<input type="text" name="wp3newsletter_name" id="wp3newsletter_name">
</td>
</tr>
<tr id="newsletter_subscribe_email">
<th align="left">
<label for="wp3newsletter_email">Email:</label>
</th>
<td>
<input type="text" name="wp3newsletter_email" id="wp3newsletter_email">
</td>
</tr>
<tr id="newsletter_subscribe_to">
<th align="left" colspan="2">Subscribe to:</th>
</tr>
<tr>
<td colspan="2">
<input type="checkbox" name="wp3newsletter_group[]" value="1" id="wp3newsletter_group_1">
<label for="wp3newsletter_group_1">
Test </label>
<input type="hidden" name="possible_group_id[]" value="1">
<br>
</td>
</tr>
<tr id="newsletter_subscribe_submit">
<td colspan="2" align="center">
<input type="submit" name="subscribe" value="Subscribe">
</td>
</tr>
</tbody>
</table>
</form>

You can get this code by adding the "subscribe" widget to your sidebar and then view your website and then "view source" on the page to see the generated <form> code.