Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Convert Token to UPPERCASE

Convert Token to UPPERCASE 1 Jahr 9 Monate her #91619

  • Mike1985
  • Mike1985s Avatar
  • OFFLINE
  • Senior Lime
  • Beiträge: 49
  • Karma: 0
I think I am having a problem. When my customer comes to fill in a survey they are sometimes entering their token in lowercase letters but the token in the database is uppercase letters.

This is having unpredictable results. Some are being kicked out of the survey. Unable to recognize their session and continue with the survey.

Where on my index.php script do I have to change the SQL so that the token they entered is being converted to UPPERCASE??

I am on version 1.90+

Thank you
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Re: Convert Token to UPPERCASE 1 Jahr 9 Monate her #91634

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4297
  • Dank erhalten: 811
  • Karma: 374
Dunno about modifying the PHP but you could convert to uppercase with JavaScript.

Add the following to the end of template.js:
$(document).ready(function(){
	$('input#token').change(function(){
		$(this).val($(this).val().toUpperCase());
	});
});
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.127 Sekunden
Donation Image