Forum Moderators: open

Message Too Old, No Replies

Securing my "thank you" page.

         

tonynoriega

10:49 pm on Mar 11, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a thankyou.php page that echo's back a paragraph and a link to a guest pass .pdf page.

how do i keep users from directly typing that page to access the guest pass?

i pass data from "register.php" to this page to store in a mysql dbase and to send me a confirmation email.

but am unsure on how to only display the paragraph and link ONLY if data has been passed?

incrediBILL

11:35 pm on Mar 11, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Pass the data server side only using a session variable.

kaled

11:11 am on Mar 12, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If the thank-you page follows a form submission (POST not GET) then you should be able to check if valid POST data has been sent - if not then don't display the guest pass.

Kaled.