English Grad Apps program fix
Posted by jamie on 08 Feb 2011 in Activity log
Small fix to the english grad apps program that allows reviewers to review PhD and MA applications online. The names of applicants are passed to a Javascript function that is triggered upon button click, like this (names used are not real):
<button onclick="showform('LASTNAME-Firstname-PhD')">Assess...</button>
However, if the name had an apostrophe, it was breaking the Javascript:
<button onclick="showform('LAST'NAME-Firstname-PhD')">Assess...</button>
So, I simply escaped the names with addslashes()
.
This entry was posted by Jamie and filed under Activity log.