Home › Forums › Quform WordPress › Retrieve database ID
- This topic has 5 replies, 2 voices, and was last updated 11 years, 7 months ago by jasecorn.
- AuthorPosts
- April 25, 2013 at 9:44 am #4063jasecornParticipant
I currently use the form to submit data to a mysql database. I have a script that I’ve written to display the contents of each table row in a nicely formatted web page – based on a lookup of a submitted row ID (ie: http://www.test.com/script.php?id=345)
What I’d love to be able to do, is have quform automatically redirect to this script by retrieving the value of the database ID it just created.
So, submit form, and then display the contents of what was just submitted.
I’m not sure if this is possible or not?
April 25, 2013 at 10:54 am #4069AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 25, 2013 at 2:35 pm #4074jasecornParticipantHi Ally
I should have mentioned that I’m using an external database with an auto increment ID. The database needs to be portable, so living within the wordpress database isn’t really an option.
Looking at the code you have provided, I’m assuming it relies on storing the data in the wordpress database, and utilising the “Entry ID” field?Jason.
April 26, 2013 at 2:33 pm #4104AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 26, 2013 at 3:11 pm #4105AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
April 26, 2013 at 4:31 pm #4109jasecornParticipantAlly, you rock 🙂
Thanks for that. This works perfectly!
- AuthorPosts
- You must be logged in to reply to this topic.