简体   繁体   中英

Pass form data to another form (forms are on different domains). With sessions

So I have a sign up form on one domain. After completing sign up on that site user has to go to paysite and register there.

I want to save form data in session (when user registers on first site) and then fill it in 2nd form when users gets to it + auto submit.

1st page smth like this?

<?php
session_start();
if (isset($_POST['Submit'])) { 
$_session['login'] = $_POST['login'];
$_session['name'] = $_POST['name'];
$_session['mail'] = $_POST['mail'];
} 
?>

But what I have to put on 2nd?

I dont really understand what you are trying to do. But session cookies could only share by pages on the same domain. For passing cookies to another domain, you have to use post/get mothed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM