It seems i have stumbled onto a unforeseen problem with fpdf when using & in a sentence.
My php file gets information from a mysql database. And unfortunately I noticed if the field contains a & symbol the command fails. Basically what happens is if the sentence says Me, my partner & our friends the fpdf command only posts Me, my partner and ignores the rest...
I do not use the $_GET to pass the values, but rather $_POST, so i do not believe the & sign should conflict should it?
I have been spending quite some time searching for answers, but I do not see any mention of it...
Any assistance would be great.
Related
So, it's my first question here - i found a lot of hints which all working for itself but im struggling now with the final step to get solved.
Guess it's very specific pointed to TYPO3-CMS V9 and higher.
I can also support with all of the Codes, for the moment i guess this will be better on request.
Task: Create a simple Productorderform for logged-in-users pointing just there specific products form the specific price-lists. -> solved by using PHP-Script working with a CSV-File, grabbing also some functions from TYPO3 itself to get needed parameters.
This PHP creates a DATALIST on runtime for the INPUT-Field producing the needed HTML-Code -> solved and working as expected.
Tricky part.
As TYPO3 offers a CORE-Extension called FORM and the Option to - REPEAT - the fieldset.
Also for TYPO3 there is an extension which allows to put PHP-Code directly to TYPO3 as a Content-Element.
FORM itself allows to put Content-Element to a form.
Working so far, but as described, the field (its value) is not recognized when i fire the send button.
So for some reason i have to predefine the trigger also.
I tried step for step to extend the predefined field in the php with the tags of an empty one, all(?) the surrouding DIV etc. to make FORM recognize this field as a "native" field, just extend in the main tag with ... list="prodlist" ...
Well, as you might see, i'm not a developer or programmer, i might have some skills and experiences to know where and how to go with the level (and timeframe) i have.
So i guess the final step might not be that far, but as we say here, i can't see wood because of trees...
The FORM structure by the way is saved to a YAML-file which might be also manipulated, but as i have seen, it gets the triggers -what- to parse in some way from the FORM created.
Many thanks for hints, ideas an hopefully noone was falling to sleep reading this question... ;)
This is a strange one, but it seems like it should be really easy to solve.
I have a wordpress website Version 4.8.3. PHP 5.6.32.
Whenever I put in a specific value into the title field 6147989800 (or other fields) it get's swapped out on the front end with 8552226270.
I searched in every file on the server for some code (i suspect javascript) that is swapping out the numbers. No luck.
When I search the database the original number 6147989800 is there. But when I do a var_dump of the field is shows 8552226270 and it shows up as 8552226270 on the front end.
This switch happens when I put in 6147989800, 614.798.9800, and 614-798-9800.
I'm at a loss. Even stranger is that when I duplicate the website to a local instance and on a test server the swap doesn't happen.
Any ideas would be great. Thanks!
Thank you John Ellmore for your help. It did end up being a third party Javascript that was doing the phone swap.
I don't know how I missed it [smacks palm against forehead]
I'm currently working on Moodle to change the spelling of enrol to enroll. I've completed almost every single screen except two places. Here is the code Github. To dig more, I need to know how do I find where to find the output of line 47 and what is the output? I have very little knowledge on coding, please excuse if the question is not clear
get_string(STRING_NAME, COMPONENT) takes english strings from /lang/en/COMPONENT.php
In your example, you would find the output for get_string('enrolmentinstances', 'enrol') in /lang/en/enrol.php (see https://github.com/moodle/moodle/blob/master/lang/en/enrol.php#L60 - $string['enrolmentinstances'] = 'Enrolment methods';)
I am a novice in working with the php language but have been learning over some time through testing and lots of time searching on the internet for examples and tutorials. Once in a while I get stumped with a task I just can't seem to figure out on my own. So I am asking that someone point me at least in the right direction in my current question.
I need to have the ability to add basically any character I want in a form field that will display the results I type in. Currently, the template uses the code below for the field and displays back only numbers. I need to upgrade or change it to allow any character I want.
Here it is
.number_format($price, 0, '.', ',')
Do I need to provide any additional info or does this get anyone's gears turning?
Much appreciated.
I am working on a accouting application. The user will upload the desired pdf or doc bank statement in the application. I need to read/parse the document and insert the amount/cheque number etc...(according to my database structure) in the database.
Please help in achieving the same.
PDF is made for representation, not to work with the data inside.
You might be lucky with pdftotext or catdoc.
I've been working on this same issue for over 2 weeks now and I have to say it is quite a task. I have had some success finding a php class to extract the text , but the problem is it will not work on every version of the .pdf format it's hit and miss. And drumming one up yourself will take awhile figuring out the encoding and compression issues. Right now I'm actually looking at some python libraries. It's just too time consuming for me to write one of these up from scratch for now.