Hi, my site allows my members to create a fundraising page so that they can raise money for their chosen charity. The home page of my site has a banner which includes a big 'Create Fundraising Page' button. If a user is logged in, they will be brought to the /create-page section of the site when they click the button, HOWEVER if the user is not logged in, they will be redirected to the /sign-up page. I've been asking some of my users for feedback lately and some of those suggested that i should allow a user to start creating their fundraising page regardless if they are signed in or not, which would probably bring a higher conversion rate. I don't want to add another status to the Fundraising pages as this would mean that i would need to revisit / adjust a lot of queries around the site to take the new status into account SO i was thinking of adding temp fundraising table that would store the fundraising page details and then move them to the live fundraising table once the user signs in or signs up after they create their mission... I need to think how i can relate the user to the temp record so that i can move it to the live table when they sign in / up. I was thinking of using a session which would mean that the user has to sign in / up immediately after creating their fundraising page or else the mission is lost and they would need to start again... Can anyone suggest a better method or have any other relevant advice, thanks in advance...
Hi oo7ml, You could use a cookie to store the not-logged-in data. <?php setcookie("notloggedincookie", "VALUE", time()+3600); ?> PHP: If you want you can instead of "VALUE" use "PageTitle[]PageContent[]Image[]" and then PHP Explode the values into a array: <?php // Example $fundpagevalues = "PageTitle[]PageContent[]Image[]"; $pieces = explode("[]", $fundpagevalues); echo $pieces[0]; // Piece 1 echo $pieces[1]; // Piece 2 ?> PHP: Then to check if your user has the not logged in cookie: <?php if (isset($_COOKIE["notloggedincookie"])) { // Insert The Stored Data } ?> PHP: I hope this helps you! Kind Regards, Maarten