Jump to content

cliffem

New Members
  • Posts

    6
  • Joined

  • Last visited

cliffem's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. That, Psycho, is the issue: Where do I modify the value? I have no problem with occasional "D'Angelo". Can be corrected manually or tested as you say. If a character does not belong to an array of acceptable characters, then, apply different rules or flag for inspection. My issue is that I get ALL CAPS, no caps, a mixed case of entries. Then when the data is used to create reports or even their Headshot Resume for movie directors it is GIGO.
  2. Thank you. Aware of it years ago. Use it elsewhere on site. The problem is WHERE do I apply it in this code: Need to ucwords() the values (i.e. "nombre") before they go into database. If I could - foreach($_POST as $key => ucwords($value)) that would be the simplest solution. Doesn't work. I am sure it is a matter of my ignorance and just a matter of someone that has come across this issue before. <form action="http://www.ainmpr.com/?page=step3" method="POST" name=myForm id="commentForm" class="cmxform"> <?php foreach($_POST as $key => $value){ ?> <input name="<?php echo $key ?>" type="hidden" value="<?php echo $value ?>" /> <?php } ?> <div class="linea"> <div class="itemlabel">Nombre: <br>Name: </div> <div class="cajita"> <input type="text" class="required" name="nombre" /> </div> </div> <div class="linea"> <div class="itemlabel">Segundo Nombre: <br>Middle Name: </div> <div class="cajita"> <input type="text" name="nombre2" /> </div> </div>
  3. 1- Was coded for me. I am trying to Proper case the data BEFORE it enters the table. 2- There are over 30 inputs to the form. Names, address, phones (taken care of), URLS, etc.
  4. How could you perform some action on the original value of $value before reaching the $key => $value stage? ? foreach ($_POST as $key => $value) Comes from <input type="text" class="required" name="nombre" /> Need to convert the original value of $value to proper case. It is now being entered helter shelter lowe, mixd, all caps, etc.
  5. Many different ways; none work. Guessing the way is to apply the operation BEFORE $key => $value; but can't figure it out. This doesn't produce results; quite the opposite, page will not display. value="<?php echo ucwords($value); ?>" or after this code: <div class="cajita"><input type="text" class="required" name="nombre" /></div> Can also code so that data retrieval is "cased" the right way, but that is sloppy work. Need the user's input to be cased properly when added to db.
  6. new account form has the usual; firstname, last name company, street address etc. Talents write in ALL uppercase, lowercase everything but proper case. Don't know where to apply ucwords and strtolower to convert values into proper case. Code as is: <form action="https://www.website.com/?page=step3" method="POST" name=myForm id="commentForm" class="cmxform"> <?php foreach($_POST as $key => $value){ ?> <input name="<?php echo $key ?>" type="hidden" value="<?php echo $value ?>" /> <?php } ?> <hr> <div class="linea"> <div class="itemlabel">Nombre: <br>Name: </div> <div class="cajita"><input type="text" class="required" name="nombre" /></div> </div> Thank you for any solutions/suggestions
×
×
  • 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.