I’m looking to create a page for a wedding site that will have a form. The idea is that it is an RSVP page where a visitor will input a unique string that was on the invitation that they received and will take them to another page that will have the info (attending, how many guests, etc.), after that storing it in a database so I have a completed guest list that I can use for later purposes. I’m not very familiar with WordPress yet, so what is the easiest way to have pages that involve forms and that the second input page would not be displayed in the navigation? I should be able to write the php and form html without too much trouble, just need a jumping off point.
Leave a Reply
You must be logged in to post a comment.
If I were doing it this is how I’d do it:
I would be to use a plugin such as cFormsII (free), Gravity Forms (Commercial), or several others to store the data in the database. Both the plugins I mentioned allow you to export the data which is great for a guest list.
For the key you could go about it the lazy way by having one key that looks unique but it actually not. Or you could do something like
md5($lastname.'mysalt')
to make sure they can access the page. The problem with the later is you’d need to make an array/list/database of all the guest last name to do the check.Now I would create a custom page template and do something like this:
Then set the invite page to your new custom page.
This would mean you would link to
http://example.com/invite?key=mykey