Menu

How to display "quotes" in drop down menu

Help
2006-04-20
2013-06-03
  • Mike Snyder

    Mike Snyder - 2006-04-20

    I am trying to create a form that lists height as one of the fields.  Without even thinking that this would screw things up, I went ahead and did it.

    Is there a way to modify the form now that it's created with single and double quotes in a drop down menu?

    I wanted to use:

    3' (3 Foot)
    3'1"
    3'2"
    3'3"

    You get the picture.  However when the form was generated, it only puts:

    3\\
    3\\
    3\\
    3\\

    I am trying to find a way around that, any help would be appreciated.

    THANKS!

    Mike

     
    • TNTEverett

      TNTEverett - 2006-04-21

      I'm not exactly sure where things break for you but here is some simple html code for a drop down menu that shows values with single and double quotes.  This would be code in the form1.html file.  Note the use of " in place of " and double quotes surrounding the single quote. 
      If you would like me to debug this further, send me an example form1.html and process.php that fail. 

      <form method="POST" action="process.php">
          <p><select size="1" name="D15">
          <option value="3'3&quot;">3'3"</option>
          <option value="3'5&quot;">3'5"</option>
          <option value="4'5&quot;">4'5"</option>
          <option value="6'10&quot;">6'10"</option>
          <option value="10'9&quot;">10'9"</option>
          </select></p>
          <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
      </form>

       
      • Mike

        Mike - 2006-04-25

        Any reason why?

         
      • TNTEverett

        TNTEverett - 2006-04-25

        I guess my reply got translated.  Note the use of & q u o t instead of ".  I specifically put in spaces to avoid translation. 

            <option value="3'3 & q u o t;">3'3"</option>
            <option value="3'5 & q u o t;">3'5"</option>
            <option value="4'5 & q u o t;">4'5"</option>
            <option value="6'10 & q u o t;">6'10"</option>
            <option value="10'9 & q u o t;">10'9"</option>
            </select></p>

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.