Need some help with some basic stuff
Moderator: General Moderators
Need some help with some basic stuff
I have posted a few times about a site I'm currently building. Basically its a gift registry where people can sign up and add links to products to their personal registry page. I have the database set up and everything is working properly. Now I need to set up the page where visitors can view the registries. I have no idea how to go about it. Could anyone help me get going in the right direction?
- aaronhall
- DevNet Resident
- Posts: 1040
- Joined: Tue Aug 13, 2002 5:10 pm
- Location: Back in Phoenix, missing the microbrews
- Contact:
Something to start you off: viewtopic.php?t=24556&highlight=database
Thanks for the reply. I guess I should have been more specific. I have already set up forms to register and insert the information for the individual registrants. Now I need to create the page where a visitor can look at individual registries. I'm not sure how to go about that. I'll have a search feature where a visitor can search for a registrant by first and last name, but I need a page to link to that will display their registry.
The registrant also invites guests via email automatically upon registration. The email will contain a link to their registry for their guests to go to. I'm just at a loss as to how I create that page.
The registrant also invites guests via email automatically upon registration. The email will contain a link to their registry for their guests to go to. I'm just at a loss as to how I create that page.
In a previous post I was told that the page would be something like "http://www.thesite.com/view_registry.php?userid=1".
What exactly does the view_registry page need to do in order to recognize the "userid=1" ?
What exactly does the view_registry page need to do in order to recognize the "userid=1" ?
- jayshields
- DevNet Resident
- Posts: 1912
- Joined: Mon Aug 22, 2005 12:11 pm
- Location: Leeds/Manchester, England
- aaronhall
- DevNet Resident
- Posts: 1040
- Joined: Tue Aug 13, 2002 5:10 pm
- Location: Back in Phoenix, missing the microbrews
- Contact:
Correct. Before you stick that straight into your query, though, be aware that the user can stick anything into that variable, including quotation marks. Always "sanitize" your variables with mysql_real_escape_string.
Awesome. I finally feel like I'm getting somewhere. Thanks a bunch for all of your help. My next issue is with the search function. People will have the ability to search the registries by first name and last name. This will ultimately bring up multiple registries. How do I link the results to their corresponding userid?