davidcriniti Posted June 19, 2014 Share Posted June 19, 2014 Hi everyone, On our school website, we've got a page where students can do a quiz, and get feedback given to them, as to whether their answers are correct or incorrect. The code echos the student response for each question, and the feedback, tick / cross is displayed in the adjacent column. However, I've just changed the input box from a text field to a text area, and I've noticed a little quirk. The student answer, after pressing submit, now displays in lower case. Is their any way I can echo their answer, exactly as they input it. Here is the relevant code: <textarea name="user_answer_<?=$row_counter?>" cols="40" rows="2" /><?=$userAnswer?></textarea> Thanks for your time, Dave Quote Link to comment Share on other sites More sharing options...
ginerjm Posted June 19, 2014 Share Posted June 19, 2014 Its' probably a function of your browser's handling of textareas. Try using your css to specify the same font for textarea tags as you are using in the rest of your page. Quote Link to comment Share on other sites More sharing options...
requinix Posted June 20, 2014 Share Posted June 20, 2014 Lowercasing will only happen if you explicitly did something to make it happen. Whatever it is, it's in your code ("code" of some form or another). Quote Link to comment Share on other sites More sharing options...
Ansego Posted June 20, 2014 Share Posted June 20, 2014 I agree with @requinix, Might want to post the function code that handles the output. May have something like: strtolower($str); in there... ( REF: http://www.php.net//manual/en/function.strtolower.php ) If not maybe try another browser as @ginerjm suggested. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.