Quote:
|
Originally Posted by Mr_love_monkey
ok, what I'm looking to do is from one website, during a process, make a call to another website address, passing along x amount of information, but without physically redirecting from the current page.
Obviously the recieving page can just pull the data out of the url, but how does the calling page make the request, without doing a literal forward?
(if any of that makes sense).
|
Well, you can do a HTTP POST.
You'd set up a form, with a POST action, and a submit button. You would leave your inital page, so you'd have to redirect back.
For example you would do something like
initalpage.htm
Code:
<form action="secondpage.php" method="post">
<input type="text" anme="name" size="20">
<input type="submit" value="Submit Form">
</form>
and in secondpage.htm
PHP Code:
echo $_POST['name'];
You could use javascript and open a link in another window, but popup blockers will probably block it:
Code:
window.open('secondpage.php?name=punky','newwindow');
And you would GET instead of POST to get the name like:
PHP Code:
echo $_GET['name'];
HTH