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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.