Title: all hidden fields  posting to database
Last modified: August 20, 2016

---

# all hidden fields posting to database

 *  [pttyphllps@lycos.com](https://wordpress.org/support/users/pttyphllpslycoscom/)
 * (@pttyphllpslycoscom)
 * [14 years ago](https://wordpress.org/support/topic/all-hidden-fields-posting-to-database/)
 * Hi,
 * I’m trying to use hidden fields to know from which of two pages my users are 
   signing up, both Providers and Folks. I created two different hidden fields at
   two different times using “yes” “no” as values as well as well as “post->folksignup”
   and “post->providersignup” as values. I have tried both checking the signup box
   and unchecking the signup box. When I check the boxes I see:
 * <input type=”hidden” name=”folksignup” value=”yes” />
    <input type=”hidden” name
   =”providersignup” value=”yes” />
 * within the form loop which then posts to both Folks and Providers, thereby defeating
   the purpose of the different signup pages.
 * In addition I have tried using the code:
 * [pdb_signup input type=hidden name=folksignup value=”post->folksignup” ] without
   the signup box being checked and it did not help. I tried it with the box being
   checked and still ended up with both fields being activated “yes.”
 * Obviously, I have never used hidden fields so would appreciate any nudge in the
   right direction. I have looked at all of the other posts here regarding participants
   database and thought that I’ve tried all suggestions, but I’m just not getting
   it.
 * Help!
    Patricia

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

 *  [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [14 years ago](https://wordpress.org/support/topic/all-hidden-fields-posting-to-database/#post-2877338)
 * Patricia,
 * OK, I will explain how this works. When properly configured, the hidden field
   picks up the name of the page that the form is on. So, you only need one because
   when the form is submitted, the field will contain the name of the page that 
   the user was on when they filled out the form.
 * Delete the two hidden fields you created and start over. Create a new hidden 
   field called “signup_page”. Put as the default value “post->page_name” Make sure
   your new hidden field is selected to appear in your signup form.
 * Now, when someone submits the form, the “signup_page” field will contain the 
   name of the page the form was on…in your case something like “folks” or “provider”
   The exact string in the field will be the “slug” name of the page, so you will
   need to know what that is in order to use the value.
 * With this plugin, there is only one database. You can’t have two different signup
   forms, but you can know which page they were on when they signed up by the value
   of that hidden field. Now you can use that value to filter lists to show who 
   signed up on each page.
 * Also, don’t try to add fields using the shortcode, that’s not how it works, and
   you may get confusing results if you try to add things to the shortcode that 
   it doesn’t understand.
 * I hope this gets you started on the right track.
 *  Thread Starter [pttyphllps@lycos.com](https://wordpress.org/support/users/pttyphllpslycoscom/)
 * (@pttyphllpslycoscom)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/all-hidden-fields-posting-to-database/#post-2877609)
 * Thank you, Roland. I appreciate your explaining it to me.
 * Patricia

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

The topic ‘all hidden fields posting to database’ is closed to new replies.

## Tags

 * [hidden fields](https://wordpress.org/support/topic-tag/hidden-fields/)

 * 2 replies
 * 2 participants
 * Last reply from: [pttyphllps@lycos.com](https://wordpress.org/support/users/pttyphllpslycoscom/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/all-hidden-fields-posting-to-database/#post-2877609)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
