I need to open a PHP form as a pop-up window when someone clicks a button.
Say, the main file is - Report.html
PHP form is - Form.php
I am calling the Form.php from Report.html using simple Javascript code -
Question: How can I secure this Form.php can be accessed only by clicking that Button and not by directly entering the Form.php URL.
Current problem is that, if someone types http://mydomain.com/Form.php then the form is opening which I don't want..... may have some security risk.
Say, the main file is - Report.html
PHP form is - Form.php
I am calling the Form.php from Report.html using simple Javascript code -
Code:
var w=window.open("/form.php","", "width=400,status=yes,resizeable=no");
Question: How can I secure this Form.php can be accessed only by clicking that Button and not by directly entering the Form.php URL.
Current problem is that, if someone types http://mydomain.com/Form.php then the form is opening which I don't want..... may have some security risk.