/    Sign up×
Community /Pin to ProfileBookmark

form redirect & cookies

the form on page A posts to a site on another server and [B]redirects [/B]the visitor to a page B, also with a form – pages A & B are in the same directory. I’ve been unable to use cookies or session variables or $_POST to fill the form on page B with data from the form on page A. What’s the best way to do this?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@toicontienJul 05.2007 — You can't use cookies because cookies are domain specific. You could try using GET data instead of POST, when sending the data to page B. Do you have control over page B?
Copy linkTweet thisAlerts:
@jalea148authorJul 05.2007 — I'm not posting to page B - it is a redirect option in the form and not equivalent to a post or get. The post goes to another server. Yes, I control page B - it is in the same domain as A.
×

Success!

Help @jalea148 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...