jeudi 15 février 2018

How to open link after the webpage receive POST call in PHP?

I have an application to POST data to my webpage. My webpage should use POSTed data to generate a link with parameters and open it.

My webpage has these PHP codes

if(isset($_POST['name']) && isset($_POST['surname']))
    {
        $name = $_POST['name'];
        $surname = $_POST['surname']; 
        header('Location: http://localhost/smcreader/tktest.php?name=' . $name . '&surname=' . $surname);  
    }

My problem is it won't open generated URL. I replace header with echo and add MessageBox.Show(response_stuff) to my app to show response message. It response normally, STATUS is OK, and the response message is a generated link.




Aucun commentaire:

Enregistrer un commentaire