Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

aGandrass's avatar

Store Form Data from a Client Website into another Database

Hi everbody! I am looking for a secure solution to store form data from one of my clients into my own Laravel driven database. Just like GetResponse does with custom forms. Please find below a example from GetResponse:

<form action="https://app.getresponse.com/add_subscriber.html" accept-charset="utf-8" method="post">

&lt;!-- Email field (required) --&gt;
email: &lt;input type="text" name="email"/&gt;
&lt;!-- List token --&gt;
&lt;!-- Get the token at: https://app.getresponse.com/campaign_list.html --&gt;
&lt;input type="hidden" name="campaign_token" value="xxxxx" /&gt;
&lt;!-- Subscriber button --&gt;
&lt;input type="submit" value="Subscribe"/&gt;

</form>

Thank you very much for your help Andre

0 likes
3 replies
Ricardo's avatar
Ricardo
Best Answer
Level 48

@agandrass you should use an API endpoint from your side.

You create a user and give an API token, then in your client's form post to your site given that token as part of the form.

See API Authentication

aGandrass's avatar

Thanks for directing in the right direction @ricardo Finally, I am going to use Laravel Passport.

Please or to participate in this conversation.