# using forms and using php to send

**URL:** <https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778>\
**Category:** Bootstrap Studio Help\
**Created:** [March 18, 2016, 3:22pm UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778 "2016-03-18T15:22:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![hackers\_84](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/hackers_84/32/1105_2.png) [@hackers\_84](https://forum.bootstrapstudio.io/u/hackers_84)\
**Post date:** [March 18, 2016, 3:22pm UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/1 "2016-03-18T15:22:17Z")

</div>

Hi all,

Looking to get some collective help here as i'm trying to figure out how best to build a form that will fire off an email when a user clicks submits.

Building the form is a piece of cake thanks to BS studio but getting the php element working is proving to be my biggest challenge. So was wondering if anyone can share some thoughts or guidance on how best to do that here.

i appreciate that PHP is not going to work in editor and that i will have to export and upload a php doc to server direct, but keen to hear other people experiences and how you overcome this on BSS.

---

<div class="post-metadata">

**Author:** ![saj](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/saj/32/708_2.png) [@saj](https://forum.bootstrapstudio.io/u/saj)\
**Post date:** [March 18, 2016, 4:13pm UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/2 "2016-03-18T16:13:52Z")

</div>

I don't know PHP at all but I'd thought I'd try to help if I could, maybe this link can give you some direction.

http://www.ehow.com/how\_5075292\_create-php-form.html

Hope this helps ;)

Saj

---

<div class="post-metadata">

**Author:** ![hackers\_84](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/hackers_84/32/1105_2.png) [@hackers\_84](https://forum.bootstrapstudio.io/u/hackers_84)\
**Post date:** [March 18, 2016, 5:16pm UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/3 "2016-03-18T17:16:05Z")

</div>

Thanks Saj

ill take a look at that link, i have been scouring the web for simple examples to get working and then can work up my knowledge as i go along.

How do other members of the community use forms? is it always PHP to send mail or can other solutions be explored?

---

<div class="post-metadata">

**Author:** ![hackers\_84](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/hackers_84/32/1105_2.png) [@hackers\_84](https://forum.bootstrapstudio.io/u/hackers_84)\
**Post date:** [March 18, 2016, 6:10pm UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/4 "2016-03-18T18:10:19Z")

</div>

have got it working now :)

i had mistaken forgot to export my design before uploading.....

---

<div class="post-metadata">

**Author:** ![martin](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/martin/32/3_2.png) [@martin](https://forum.bootstrapstudio.io/u/martin)\
**Post date:** [March 21, 2016, 2:12pm UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/5 "2016-03-21T14:12:29Z")

</div>

Creating the backend for forms is a challenge if you are not familiar with server-side languages like PHP, Python, Ruby etc. Maybe we can offer some kind of automatic form handling in the next releases. For example you can just drag and drop a form together, check a checkbox and decide on which email to receive the form submission. Our server will handle the actual form processing and email sending.

Does this sound like something you would use?

---

<div class="post-metadata">

**Author:** ![udoyen](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/udoyen/32/44_2.png) [@udoyen](https://forum.bootstrapstudio.io/u/udoyen)\
**Post date:** [March 21, 2016, 4:38pm UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/6 "2016-03-21T16:38:36Z")

</div>

Hi Martin, that would be nice. Also it would be nice to be able to create other types of web pages say pages like php, python, ruby etc.

---

<div class="post-metadata">

**Author:** ![hackers\_84](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/hackers_84/32/1105_2.png) [@hackers\_84](https://forum.bootstrapstudio.io/u/hackers_84)\
**Post date:** [March 21, 2016, 6:02pm UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/7 "2016-03-21T18:02:28Z")

</div>

Martin

That would be a great start I making it easier for those who are not up to scratch in php.

As it stand I now have a pretty good solution as I search for some tutorials and have some j query validation as well.

---

<div class="post-metadata">

**Author:** ![shaezonna](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@shaezonna](https://forum.bootstrapstudio.io/u/shaezonna)\
**Post date:** [March 30, 2016, 4:25pm UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/8 "2016-03-30T16:25:00Z")

</div>

@martin, Yesss! That's what I need.

---

<div class="post-metadata">

**Author:** ![plusq](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/p/e9c0ed/32.png) [@plusq](https://forum.bootstrapstudio.io/u/plusq)\
**Post date:** [April 30, 2016, 8:59pm UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/9 "2016-04-30T20:59:32Z")

</div>

Much easier to program is (I think) to make it possible to save a page as \*.php and not only fixed on \*.html

So we can make a little component with some php-code for sending the forms.

There is no other php needed in BSS, only the possibilty to save the files

---

<div class="post-metadata">

**Author:** ![shaezonna](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@shaezonna](https://forum.bootstrapstudio.io/u/shaezonna)\
**Post date:** [May 3, 2016, 11:48pm UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/10 "2016-05-03T23:48:43Z")

</div>

@martin, how soon can we expect automatic form handling?

---

<div class="post-metadata">

**Author:** ![martin](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/martin/32/3_2.png) [@martin](https://forum.bootstrapstudio.io/u/martin)\
**Post date:** [May 7, 2016, 6:04pm UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/11 "2016-05-07T18:04:46Z")

</div>

@ShaeZonna There is a lot of work that we have to do first. Bootstrap 4 and SASS support are higher priority.

---

<div class="post-metadata">

**Author:** ![jemoreto](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/jemoreto/32/77_2.png) [@jemoreto](https://forum.bootstrapstudio.io/u/jemoreto)\
**Post date:** [September 29, 2016, 3:09am UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/12 "2016-09-29T03:09:41Z")

</div>

+1 for this php send mail tool Cheers

---

<div class="post-metadata">

**Author:** ![percman](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/p/bbe5ce/32.png) [@percman](https://forum.bootstrapstudio.io/u/percman)\
**Post date:** [September 29, 2016, 10:54am UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/13 "2016-09-29T10:54:31Z")

</div>

You might also look at http://jemsmailform.com/ Simple form, secure, pretty easy to customize.

---

<div class="post-metadata">

**Author:** ![jo-r](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/jo-r/32/1926_2.png) [@jo-r](https://forum.bootstrapstudio.io/u/jo-r)\
**Post date:** [September 30, 2016, 5:19pm UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/14 "2016-09-30T17:19:58Z")

</div>

Machform is another nice tool if you have PHP enabled on your server. Most people seem to, but not all. If you do I can tell you it's worth every penny to invest in it as it's a very versatile form builder.

---

<div class="post-metadata">

**Author:** ![chris-thompson](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/chris-thompson/32/104_2.png) [@chris-thompson](https://forum.bootstrapstudio.io/u/chris-thompson)\
**Post date:** [October 4, 2016, 3:43pm UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/15 "2016-10-04T15:43:52Z")

</div>

What about a component that integrates with a service like https://www.mailgun.com ? They provide up to 10,000 emails for free.

---

<div class="post-metadata">

**Author:** ![jo-r](https://forum.bootstrapstudio.io/user_avatar/forum.bootstrapstudio.io/jo-r/32/1926_2.png) [@jo-r](https://forum.bootstrapstudio.io/u/jo-r)\
**Post date:** [October 4, 2016, 4:05pm UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/16 "2016-10-04T16:05:45Z")

</div>

Although useful, I can't see why most of the mass mailing stuff can't be done on your own rather than a component for it. If you add that one then you have dozens of others including Mailchimp and ConstantContact etc that would also be needed for everyone else that uses all the others. They all give you the code to add to your sites so it's pretty simple to add it to a Custom Code box rather than creating separate components for it. That's usually all that is needed too is just a box of code, no files are usually needed to add (js, css, etc) so it's just a block of code and a simple thing to add yourself. Just my opinion here, and this is also not what the original poster is asking about. They are talking about single form type email sends, not mass mailing setups.

Having said that, you can easily create a setup for your mass mailer and then save it as a component for yourself or to share with others and then reuse it as you need it. :)

---

<div class="post-metadata">

**Author:** ![oaj](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/o/f6c823/32.png) [@oaj](https://forum.bootstrapstudio.io/u/oaj)\
**Post date:** [April 11, 2017, 8:00am UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/17 "2017-04-11T08:00:25Z")

</div>

Using "Bootstrap Studio server" to handle the actual form processing and email sending is a security issue for some websites. For example I would allow my contact form information to send through a trusted mail server(company email) and not any server.

---

<div class="post-metadata">

**Author:** ![lord](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/l/df705f/32.png) [@lord](https://forum.bootstrapstudio.io/u/lord)\
**Post date:** [July 11, 2017, 3:01pm UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/18 "2017-07-11T15:01:56Z")

</div>

With all respect,

I believe that this goes totally out of the Bootstrap Studio proposal and the team may lose focus and the application may lose quality. My point of view.

Given that you already have the Form component, and the "Action" parameter to set the script name such as "sendContact.php" in addition to other optional parameters ...

I also have no PHP experience, but that does not stop me from doing a search and finding scripts ready and adapting them. Nothing personal, I just think there's a risk Bootstrap Studio will lose focus and in the future will be just another "editor" of pages and not that wonder it is today!

---

<div class="post-metadata">

**Author:** ![kriss0706](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/k/f07891/32.png) [@kriss0706](https://forum.bootstrapstudio.io/u/kriss0706)\
**Post date:** [July 11, 2017, 8:03pm UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/19 "2017-07-11T20:03:08Z")

</div>

@Lord is right, you're losing focus devs!

As you mentioned yourself in other posts @Martin, BSS is a front-end tool and should continue to be like that. It would be alright to have the form design as a component, but the functions should be made by the user in my opinion. I know I'm not posting much, keep up the great work BSS team!

---

<div class="post-metadata">

**Author:** ![trevorm](https://forum.bootstrapstudio.io/letter_avatar_proxy/v4/letter/t/3ec8ea/32.png) [@trevorm](https://forum.bootstrapstudio.io/u/trevorm)\
**Post date:** [July 15, 2017, 11:08am UTC](https://forum.bootstrapstudio.io/t/using-forms-and-using-php-to-send/1778/20 "2017-07-15T11:08:05Z")

</div>

If you do add the email handling component, and you need to if you are going to produce a useful interface for the less knowledgeable users, you might consider building the facility for users to add their own mail server account details from their ISP rather only using your own server. Better for you and better for the user I think.

Thank you in anticipation. :)
