Thanks very much for your response. We have now remedied the issue and it is working well. However would just like to note on the forum that the question type must be "Selection" rather than "Multiple Choice", whilst this is the case for obvious reasons it did take us a while to figure out that it was this that was preventing our php code from working. Thanks again