Hi everyone, I am working on an inventory database for my company, and someone decided it would be a smart idea to have product codes which start with &. The problem I am running into is when we go to enter this into the AppGini database we have created the code is automatically appending a ; to the end of the field, I assume this is because the input is being treated as code and not as a literal string.
Is there any way to change the input text box so it treats the code as literal text and not code. Its not a huge deal to have the software append the ; our operators just have to remember to drop it when adding the product number to our other systems.
Any help or suggestions would be greatly appreciated.
Input field starts with & appends ;
Re: Input field starts with & appends ;
That's a very weird bug in a 3rd party component used by AppGini. I guess this fixes it: Open the generated ci_input.php file in a text editor, and find this line (line 563 if your text editor can't find it):
Change it to:
We'll make further tests on this and if all is fine, will add it to next release.
Code: Select all
$str = preg_replace('#(&\#?[0-9a-z]{2,})([\x00-\x20])*;?#i', "\\1;\\2", $str);
Code: Select all
$str = preg_replace('#(&\#[0-9a-z]{2,})([\x00-\x20])*;?#i', "\\1;\\2", $str);

- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.
- Need personalized consulting on your specific app and customizations? Book an online call with me here.
Re: Input field starts with & appends ;
Thanks once again for all your help!
Re: Input field starts with & appends ;
You're welcome 


- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.
- Need personalized consulting on your specific app and customizations? Book an online call with me here.