WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to create a simple registration process which goes like this,

  1. A visitor clicks on a link (which is viewable only after entering some information such as name, email, phone etc.)
  2. This link takes the visitor to a simple registration form that captures all the required info.
  3. And on successful validation of the form redirects the visitor back to the actual URL.

To do this, first I thought of passing the actual URL as a variable to the php login script but then anybody can see this URL in the status bar of their browsers and would be able to bypass the registration process completely.

Now I believe another way to do this is to pass the actual ID of the destination URL as a variable to the login PHP script. Can anyone help me on how to actually go about this? The registration form can be a seperate PHP file that opens as a popup or can be a form thats embedded in one of the pages.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.