Reputation: 51
I am new to programming in any field. Just started I have a task for adding a subscribe button.
What I have:
Requirement: Very simple - A Subscribe button in the website which can auto subscribe people to the mailing list.
Language: PHP, HTML. Don't ask me about the coding, I suck now but not for long.
Upvotes: 5
Views: 3073
Reputation: 3377
<h3>Subscribe to <?= $group_title ?></h3>
<form action="http://groups.google.com/group/<?= $group_name ?>/boxsubscribe">
<input name="email"/>
<input type="submit" value="Subscribe" name="sub"/>
<a href="http://groups.google.com/group/<?= $group_name ?>">Browse Archives</a>
</form>
With $group_title, and $group_name set accordingly. $group_name can be determined from the url when viewing your group.
Upvotes: 2
Reputation: 13528
Emails sent to [email protected] will auto-subscribe the sender to the group. So you could simply have a HTML link like:
mailto:[email protected]?subject=Subscribe%20to%20Your%20Group
it requires a few extra clicks by the user but it's a fairly automated way of handling the subscribes, it ensures you've got the users true email address (because they're sending the email from it) and it requires no backend programming work on your part.
Upvotes: 2