$_POST does not working

Username (Nereann)

My site is not receving POST data, i sended my data from form to https://www.jotform.com/show-post-data/ and return all right, but when i send to my site https://kairoz.great-site.net/teste/mostrar.php/ returns a empty Array().

I tried to send them direct to database but all data is empty (" "). Also tried to send with GET method and worked. But i don’t want to use it.

How i can solve this?

Welcome!

Can you please share the code you are using, as well as the URL of the form?

Thanks

Site with my form: https://kairoz.great-site.net/teste/teste.php

The php is simple:

<?php
print_r($_POST);
?>

And the form i just import from url:

<script type="text/javascript" src="https://form.jotform.com/jsform/220553064751047"></script>

Don’t have any html or css for while, i just want to make it works.

That page is just an iFrame to JotForm, so any PHP code on that page is not affecting how the form is submitted, since the form is not on that website. I don’t know how JotForm works, but you have to control submissions, and how things are submitted though JotForm.

The JotForm have some options to incorporate the form, Javascript Link, iFrame, and PopUp with <a> tag in html.
May these others options can work? Or i have to see with their support?

Right now, it looks like you have the form to redirect to mostrar.php once it is submitted, and that PHP file is trying to read POST or GET data, correct?

You have to tell the form that it needs to send POST or GET data when it redirects to mostrar.php, and there may or may not be a setting for that in JotForm settings.

It looks like this is what you are looking for: How to Send Submission Data via a POST Request

1 Like

They have the cited method option ’ Send Post Data ', i change to Yes but nothing changed. I saw that my problem is not with the site but with Jotform. Tks for support and explain <3

So what code are you using to parse the information from the form on mostrar.php?

This security system will also likely prevent you from submitting forms from external website to your site here:

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.