Jump to content

Echo with case sensitivity


davidcriniti

Recommended Posts

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.