How to add a "subscribe to newsletter" checkbox to existing form? - html

I've got a basic contact form that asks for email address and a message, which is then emailed to me. I want to add a checkbox after the email input that gives the option to subscribe to a newsletter as well. I can do the form, I can do a newsletter sign up, I'm just not sure how to combine the two. Any ideas?
Edit: To clarify, I'm planning to use a basic html form. I was hoping there'd be someway to combine that with a mailchimp or phplist newsletter signup.

You need an onSubmit() action with a method - generally post, and you'll probably have to use PHP and link it to that page so it knows to go there to process the action =}
in that page is where the clever stuff will happen like subscribe the user.
(Connect to the DB, add the email address to said table/column etc...)
Unfortunately this is not something I can just give you a snippet to insert - it'll have to be completed your side.

Related

Mailchimp: Customise fields in profile update form

I am trying to create a customised 'update profile' form for mailchimp subscribers that will allow them to opt in or out of a specific group and edit a couple of their profile fields without seeing their entire profile.
I can see how to edit the visible fields on a signup form (by changing the html code on the embed form), but I am unclear as to how to edit a 'profile update' form. There is only embeddable html available for signup forms, not profile update forms.
Doe anyone know of a solution to this? Does it require using he mailchimp API?
At first I tried to use Mailchimps partially generated code to write the 'update profile form', however, it got ugly and I used bootstrap to make a beautiful form.
Go to 'Lists',
click on the 'List' you want to make form
click 'Signup forms' from the menu
click 'General forms'
Go to the end of the form, and click 'advanced mode'
It then will reset everything (if you had made a form using drag and drop), 7- and give you a partially created form.(for this you must be a paid customer)
After this, you are presented with a choice of different types of forms like
Signup form, Signup thank you page, update profile form, unsubscribe form etc.
Just click on the type of form you wanna make.
You can use any of your favorite editor to make the form using bootstrap and simply paste it into the Mailchimp's editor and it works perfectly. Just remember to put the correct merge tag in the email template like |update_profile|. You can even use javascript, if you need it.

How to send an email with a form inside

Is it possible to send an email with a form inside ?
We want to send an email to our subscribers with an input text inside the email to get a complementary information, I havn't seen this before, is it possible to do that ?
If yes, which problems could we meet with that solution ?
I do not think that this is possible...
and even if it is, I wouldn't choose to do it.
You can not know what device your user will be on and if his mail client will support this.
If I were you, I'd just link them to the online form they have to fill. (You could use Google Docs for instance) or do it on your own website with an html form and write it to a database.
Why go through the pain of having to deal with hundrets of emails?

How should i get an email when i submit the request form / submit form through html

i am working on a submit form in my html page. When i click submit button, i should get mail in my inbox.
So what all the procedures, i need to follow to get the output.
You need to use a server side language like PHP / ASP.NET etc. Then:
User submits form.
Retrieve the submitted information.
Send an email using the email functionality specific to the language you decide to use.
You haven't given much so this is only an outline of what you need to do to get going. You can use Google for the various areas you need to implement.
Instead of using any server, is there any plugins which can be useful
to get my output. – Bharadwaj
I think this might do the job for you http://www.emailmeform.com/
I've never used it, but it looks like a website that hosts the form for you and emails you the results. You'd just put the form html on your page and let them do the rest.
Hope that helps.

how do i block outbound form submitting

I have a profile edit page on my website with preset age and country lists so people can choose their age and country.
My problem is a guy made an HTML form that can submit a custom age and country. Does somebody know how to block form submitting from websites that are not on my domain?
I changed my form a few times, but he can find the input names just as simply as I changed them.
The only fail-safe way to prevent a submission of a form with undesirable values is to perform validation on server side.
I think the referrer (Request.ServerVariables("http_referrer")) should tell you the page the request came from. As Oleg said you should additionally validate the returned form data in any case.

How do I make a forward e-mail link?

So I want to make a HTML news letter to be sent out. I want to make a "Forward to Friend" button, but how would I link that?
The short answer is that you can't. Email clients don't provide a way for emails to trigger their Forward functionality.
The closest you could come would be to provide a link to a form which asks people to give you email addresses belonging to third parties to which you could then send email. (If I was that third party, the email would be dropped directly in my spam bin, possibly after filling out the annoying form for reporting spammers that is available from the OIC)
The good news is that email clients have Forward functionality built in, so you don't need to reinvent the wheel.
The little trick I use is to leave the "mailto" part blank, and then in the the "body" section put in a link that points to an online archive of the html email I just sent them.
Like this:
mailto:?Subject=Subject%20From%20My%20Original%20Email&body=Link%20To%20Online%20Archive%20of%20Original%20Email:%20http://www.bing.com/
In outlook, link is automatically turned into a hyperlink AND their cursor defaults to the "To" field because it's the only thing left blank.
I did this as a quick work around until we code a landing page for them to fill out a form and enter their friends email address, etc. This way if anyone comes across a link to our archived email on our SITE, they'll have the handy link in it to auto-open their email for them and start a message to their friend(s).
I'd try to go with the server side script route.
With PHP, use the mail function and retrieve the TO:$person from a post variable that is sent.
You could link it like:
Click here to forward this email to a friend!
GraphicMail do it by adding a link into the footer of the email that takes you to a 'Forward to' webpage (http://www.graphicmail.com/site/forward_to_friend.aspx?SiteID=xxx&SID=x&Section=xxx&FromEmail=your-mail#domain.com&token=&EmailID=X) that allows you to forward the mail assuming that all the newsletters you send out have a unique ID.