Re: Accessing data posted from a different URL

From: Date: Mon, 20 Mar 2006 22:18:35 +0000
Subject: Re: Accessing data posted from a different URL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-232253@lists.php.net to get a copy of this message
Jay Blanchard wrote:
[snip] Hmm, perhaps I didn't explain clearly. To put it another: 1. A script sends an email to a user with sign-in details. 2. The user clicks a [submit] button in the email message called "Quick Sign In" 3. A web browsers opens to http://www.website.com/signin.php (from the <form method="post" action="http://www.website.com/sign.php"> in the email) 4. Signin.php looks for $_POST["signindetails"] and auto-fills the form. Except the form post is not posting signindetails... The e-mail client may very well be ignoring the POST request. To diagnose this, you can use Ethereal or some other packet sniffing software. That will also tell you the contents of fields submitted in the POST/GET request.
Most certainly, what you want to do is not possible. I say this because Hi5 has eschewed that technique in favor of placing a hyperlink with an argument that contains a "validation code". Thus, when you click on the link (which has the validation code embedded), you're directed to the page in question and automatically logged in. To implement that, you'd need a table that correlates validation codes with user IDs on your Web application.
[/snip] Have you tried print_r($_POST) ?


« previous php.general (#232253) next »