Title: PHP Question
Last modified: August 19, 2016

---

# PHP Question

 *  [bendrucker](https://wordpress.org/support/users/bendrucker/)
 * (@bendrucker)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/php-question-3/)
 * I know almost no PHP. However, I have an idea for a simple thing I’d like to 
   add to my website. I’d like to have a little client login page. They would enter
   a 5 digit code, and then be redirected to a WordPress page based on the code.
   The codes and their corresponding pages could be stored in an array within a 
   php document. I understand this isn’t very secure. It doesn’t need to be especially
   secure. If anyone could help me out with how the code would look, I’d really 
   appreciate it.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/php-question-3/#post-1157120)
 * > I know almost no PHP. However, I have an idea for a simple thing I’d like to
   > add to my website. I’d like to have a little client login page. They would 
   > enter a 5 digit code, and then be redirected to a WordPress page based on the
   > code. The codes and their corresponding pages could be stored in an array within
   > a php document. I understand this isn’t very secure. It doesn’t need to be 
   > especially secure.
 * if you dont know how to do it, than how do you know its a simple thing to do?(
   you dont store arrays within php documents, btw)
 * > If anyone could help me out with how the code would look, I’d really appreciate
   > it
 * [http://wordpress.org/support/topic/217141?replies=11](http://wordpress.org/support/topic/217141?replies=11)
 *  [Felix J](https://wordpress.org/support/users/felix-j/)
 * (@felix-j)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/php-question-3/#post-1157123)
 * You would need a plugin to do this.
 * This plugin might help you… [http://wordpress.org/extend/plugins/sidebar-login/](http://wordpress.org/extend/plugins/sidebar-login/)
 * EDITED:
 * Nwm Whooami’s link is better since it’s a tutorial.
 *  Thread Starter [bendrucker](https://wordpress.org/support/users/bendrucker/)
 * (@bendrucker)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/php-question-3/#post-1157142)
 * Thank you whooami for the link to the tutorial. Although it’s a much more complicated
   system than I need, I am working on implementing it now.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP Question’ is closed to new replies.

## Tags

 * [form](https://wordpress.org/support/topic-tag/form/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 3 replies
 * 3 participants
 * Last reply from: [bendrucker](https://wordpress.org/support/users/bendrucker/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/php-question-3/#post-1157142)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
