snakebe Posted October 1, 2007 Share Posted October 1, 2007 Hi, I would like to make some sort of ticket system, but I'm still a newbie with php. What I'd like to have is the folowing: 1) someone fills in his name and adress, these will be stored in a database. (this part I can make myself ) 2) after I have checked there payment I want to send them a code. 3) the user can now fill in this code in a form, when he does that a ticket will be generated in pdf with a unique code on it. (ofcourse this unique code needs to be send to the database too, because I have to be able to check if the code is valid) I'm probably asking alot, but any help would be appreciated I was thinking of using a base64 encoding/decoding to generate the password..? Link to comment https://forums.phpfreaks.com/topic/71431-ticket-system/ Share on other sites More sharing options...
BlueSkyIS Posted October 1, 2007 Share Posted October 1, 2007 generating a password is simple enough. i had to generate several hundred thousand and used an array of valid characters, a-Z,0-9, leaving out ambiguous characters like lower-case L, zero (vs. O), etc. Just pull x number out randomly and check to make sure it hasn't already been stored in the database and there you go. to generate and/or alter existing PDFs, look into FPDF.org. Link to comment https://forums.phpfreaks.com/topic/71431-ticket-system/#findComment-359561 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.