Re: Deleting a page after viewing it
| From: | Jason Wong | Date: | Wed, 26 Feb 2003 17:37:45 +0000 |
| Subject: | Re: Deleting a page after viewing it | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137281@lists.php.net to get a copy of this message | ||
On Thursday 27 February 2003 01:32, Paul wrote:
> I have a confirmation of "membership" page a user would arrive at after
> clicking on a URL in an email. After they click on a link in this page I
> want to delete the page itself so it will only exist for this one use.
> The URL in the page does go to another "Welcome" page which is on
> another server. Do I need to include something in the second page that
> will do the deleting, or can I delete it from within the script for the
> first page that deletes as of the click on the URL. Haven't written any
> code yet for this, but I'm thinking "unlink."
Seems like a cumbersome way of doing things. Presumably you would have stored
membership details in a database? When someone signs up, store a unique value
token in your membership table. Then people would access your
membership-confirmation page using something like:
http://www.example.com/membership.php?token=something
Then delete token from your db and redirect to welcome page.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
To err is human, to moo bovine.
*/