Solved

Generate bar code after form submission

Posted on 2012-03-30
6
443 Views
Last Modified: 2012-03-31
Hello.

I'm hosting a big event soon and I'll have participants register using an online form. For my forms I'm using a third party software that handles everything.  

What I'm wanting to do is to generate a "unique code" for each of the people that sign up. I mean, once a user submits a form they would get a Bar code or something similar that they can print, they would then present that code to us the day of the event; this code would allow us to easily identify the person since we would scan it. We have both a bar code scanner and a QR code scanner.

Is there a script or something similar that can accomplish this?  

I hope this makes sense. Thanks for your comments.
0
Comment
Question by:Jacko_Pinto
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 54

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
ID: 37789047
Easiest thing to do is simply use a bar code font. Generate a unique number for each form (from 1 to N, or whatever range you want to use) and then enter that number with the bar code font. Here are two free ones that I've used...both work well:

http://www.barcodesinc.com/free-barcode-font/
http://www.dafont.com/barcode-font.font

Regards, Joe
0
 

Author Comment

by:Jacko_Pinto
ID: 37789661
Thanks Joe,

I guess now I'm stuck as in how to automatically generate a number for each participant. I guess I could use the ID but then I wouldn't know how to turn that number into a bar code using the font. (Total newbie here)

Thanks for commenting!
0
 
LVL 54

Accepted Solution

by:
Joe Winograd, EE MVE 2015&2016 earned 300 total points
ID: 37789719
You say that you're using third-party software for the forms that handles everything. I'm sure the third-party will have the skills to generate a unique number for each form...could be as simple as 1 to N. This is a very common thing to do...I'd be stunned if they couldn't do it. I'd also be stunned if they couldn't place each number in a standard bar code font, such as a very popular one called "3 of 9". For example, the form could look something like this:
12345-barcode-3of9The bar code above is actually the number 12345 in the "3 of 9" font (for participant 12345...could be 00001 or 99999 or whatever). If your third-party can't do this, you need a new third-party. :)   Regards, Joe
0
Do you have a plan for Continuity?

It's inevitable. People leave organizations creating a gap in your service. That's where Percona comes in.

See how Pepper.com relies on Percona to:
-Manage their database
-Guarantee data safety and protection
-Provide database expertise that is available for any situation

 
LVL 7

Assisted Solution

by:designatedinitializer
designatedinitializer earned 200 total points
ID: 37789741
You can use this to generate a QR code:

<?
generateQRwithGoogle($user_email);

function generateQRwithGoogle($input,$widthHeight ='150',$EC_level='L',$margin='0') {
    echo '<img src="http://chart.apis.google.com/chart?chs='.$widthHeight.
'x'.$widthHeight.'&cht=qr&chld='.$EC_level.'|'.$margin.
'&chl='.$input.'" alt="QR code" widthHeight="'.$widthHeight.
'" widthHeight="'.$widthHeight.'"/>';
}
?>

I would use the user email because that will surely be unique and identifies the user.
You can use whatever you want.
0
 
LVL 54

Expert Comment

by:Joe Winograd, EE MVE 2015&2016
ID: 37789804
A potential problem with using the email address is that not everyone may be willing to divulge it, being concerned about getting buried with marketing emails (aka spam). Also, depending on the demographics of your participants, not everyone may have an email address.
0
 
LVL 7

Expert Comment

by:designatedinitializer
ID: 37789838
joe:
...that's irrelevant.
I think it's pretty obvious Jacko_pinto will not use email addresses if his form doesn't require one (!) and thus will go with a serial form number as already suggested...
However, if his form requires an email address that problem is already solved in a much cleaner way.
0

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to implement server side field validation and display customized error messages to the client.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question