CodeIgniter Forums
Removing unwanted set of characters beore insert - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Removing unwanted set of characters beore insert (/showthread.php?tid=51577)



Removing unwanted set of characters beore insert - El Forum - 05-09-2012

[eluser]codemonkey[/eluser]
I am scanning hardware barcodes and some of the part numbers have at the end "#ABA"

Is there a easy way to remove this from the insert so it is not added to the db?


Also, does anyone know of some js code that can auto tab the form fields or have an idea on automating the collection process of ticket number, make, model, serial, and part numbers?

Thanks!


Removing unwanted set of characters beore insert - El Forum - 05-09-2012

[eluser]InsiteFX[/eluser]
php.net - str_replace



Removing unwanted set of characters beore insert - El Forum - 05-09-2012

[eluser]codemonkey[/eluser]
Very nice, thank you.

Any ideas on the form automaation?


Removing unwanted set of characters beore insert - El Forum - 05-09-2012

[eluser]InsiteFX[/eluser]
This might help you:

Autotab: jQuery auto-tabbing and filter plugin