Thread: Magic Quotes
View Single Post
Old 01-16-2011, 06:13 PM   #2 (permalink)
captainmerton
The Acquainted
 
captainmerton's Avatar
 
Join Date: May 2009
Posts: 178
Thanks: 9
captainmerton is on a distinguished road
Default

The problem i appear to be having is when i try and display the name as values in a form:

PHP Code:
    <tr>
    <td>
        <label for="name">Property Name*</label>
    </td>
    <td>
        <input type='text' name='name' id='name' size='50' maxlength='50' value='<?php print $property->getName(); ?>'>
    </td>
    </tr>
    <tr>
    <td>
        <label for="details">Property Details*</label>
    </td>
    <td>
        <textarea name='details' id='details' cols='75' rows='10'><?php print $property->getDetails(); ?></textarea>
    </td>
    </tr>
If both $property->getName() and $property->getDetails() return O'Neill the name form text appears as O whereas its appears as O'Neill in the details textarea input field. I'm sure its something to do with the the different form input types and the text input type is treating the comma as the end of the string. Any idea how i can resolve this?
captainmerton is offline  
Reply With Quote