Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Nov 2010
    Location
    Oregon
    Posts
    243
    Thanks
    23
    Thanked 10 Times in 10 Posts

    allow a special character in string

    for data-entry in one simple text-box, how would I go about allowing this character ' without changing my php.ini ?

    PHP Code:
    <form method='post'  target='_self' action='test_entry.php'>
    <input type='submit' name='Submit' value='Submit'>
    <input type="text"   name="SpecialName" size="150" value=''>
    </form>

    <?php
    if($_POST) { 

    echo 
    "$_POST[SpecialName]";
    }
    ?>
    Last edited by DataTalk; 06-27-2013 at 04:56 AM.

  • #2
    Senior Coder
    Join Date
    Feb 2011
    Location
    Your Monitor
    Posts
    4,091
    Thanks
    51
    Thanked 506 Times in 493 Posts
    Type it in and submit?

    What is the problem? - What are the symptoms?
    My helpful sig is on vacation trying to loose some weight. It got a bit fat and caused a few problems but it will be back at some point!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •