2
9 Comments

Client-Side PHP Alternative for HTML form submitting

Hello fellow developers,

So I have a client who is looking for the capability for their customers to submit a request via HTML Form and when submitted using onclick, to have the contents of the form emailed to her so she can follow up on their requests.

Hoping there is a client side solution whether it be using node.js or just plain Javascript.

Trying to avoid the PHP solution although that should be covered in my next semester, giving me the chance to be fully informed before completely denying the idea.

But as me and my classmates talk, I hear the thought 'Why would I use PHP when I could just get it done with Javascript' quite often & that always leaves me skeptical of falling back on PHP Solutions.

I am considering just the 'html sendto:' button approach but I understand the vulnerabilities that could come with that, it being a local small business is the only reason it may not be problematic.

Thoughts??
Any insight is appreciated,

posted to Icon for group Developers
Developers
on January 2, 2020
  1. 1

    Hey, checkout https://jsonpost.com . This might be exactly what you need.

  2. 2

    Take a look at https://usebasin.com. It's my product though, so I'm biased ;)

    1. 1

      This solved my client's needs PERFECTLY with NO server side code! Thank you my friend, you got yourself another freelancer using your product ;)

      Hoping you wouldn't mind accepting my Linkedin req too!

  3. 1

    Hey,

    on sunday I've finally managed to launch the first version of WAGLYS.

    Just create a project, inside of the project you create a form and you are ready. You will get a URL, with this URL you can now address a form to send data.

    All submits are live visible in you dashboard. Where you can also download the submitted data.

    I'm planing to add more functionality, like:

    • Build an API, so a user can access the data with his app

    • Automate handling of the data, like deleting entries older than six weeks

    • Suggestion poll, so users can submit suggestions and vote on them

    Currently it's free to use. You only need to create an account. And it will stay free, as long as it is in beta.

    https://www.waglys.net/

  4. 1

    Take a look at https://flexyform.com, There's a free plan with 50 submissions a month

  5. 1

    You could use a hosted service that handles the form submission and emails the content to an address you specify. Something like: https://fieldgoal.io/

  6. 1

    I'll be second for using Wufoo or any other form builder. If you really want to play with a code, you'll need to have some backend to send an email on "behalf of the form" since javascript/browsers don't offer any functionality like that. There are a few options for you to explore:

    1. Look into APIs that allow sending emails. Check Sendgrid, Mailgun, and many others. Look for javascript SDKs to make things easier for you. Like this: https://sendgrid.com/docs/for-developers/sending-email/libraries/#javascript--nodejs. Be careful to not leak your credentials in your code.
    2. Do some hacking with tools like AirTable, Google Spreadsheets, etc. Here is a good article to start with Google Spreadsheets: https://medium.com/@dmccoy/how-to-submit-an-html-form-to-google-sheets-without-google-forms-b833952cc175.
    3. You can also explore tools like Zapier, IFTTT, but you still need to "submit" your form to somewhere.
  7. 1

    You could use solutions like Formspree or Wufoo or other alternatives. Both of those suggestions have free tiers, and since it's a small business, it could just work.

    Another solution is to use a CRM like HubSpot. It is free and will allow you to embed a form. The caveat here is that if she will not pay, the form will have attribution under it with a link to HubSpot

Trending on Indie Hackers
Getting my first 100 users with $0: what actually worked User Avatar 57 comments What's the point of AI generated comments? User Avatar 28 comments Why I’m building an AI marketplace instead of another SaaS User Avatar 5 comments Why good products are often hard to understand at first glance User Avatar 4 comments Why can't your target customers always find your product? - Experience sharing User Avatar 4 comments The exact prompt that creates a clear, convincing sales deck User Avatar 1 comment