Jump to content

ticket system


snakebe

Recommended Posts

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 :P)

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.