Note that there are some explanatory texts on larger screens.

plurals
  1. POPhp redirect to another page with POST data
    primarykey
    data
    text
    <p>In my php application I just need to redirect the user to a specific url (a third party) with some POST data to get their service done. </p> <p>The data should pass to that Url securely (As they are the login credentials to that third party system). </p> <p>I tried to do this with cURL but it doesn't do any redirect to that specific page. It works fine if I post the form with hidden fields with the values set up. But anyone can see the posted data easilly by viewing "View page source" option in browser. </p> <p>I am searching for a sloution for long time but still no luck. If someone can guide me would be really grateful. Thanks in advance...!!!!</p> <p><strong>Edits</strong></p> <p>I can not use session as this is a third party url and it asks to post the login credentials to enter to that page. </p> <p>Functionality in breif,</p> <p>What I have to do is all the user credantials are stored here in my system.<br> When user press a button it should redirect him to that url and should POST that credetials to enter to that external 3rd party page. At the time when user press the button he doen't have to enter credantials by a text box. Thats why I even can't hard code hiddenfield as its visible if go to "View page source" option in browser.</p> <p><strong>----------</strong></p> <p>Simply I am looking for a method (in php) which will redirect the user to a url while POSTING some data. It can be simply done by creating a FORM and having textinputs(Textboxes) to allow the user to enter the post information and submit.</p> <p>But in my case I can not let the user to enter the POST information for textboxes and submit. It has to POST the data and redirect to a specified URL when user click a button. Tried to do it via cURL but it does not redirect user to the URI. Also If I add hiddenFields hardcoding POST values it is not secured as anyone can see the POST information by Browser "View Page Source" option.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload