Re: Re: Can someone tell me why this is not working?
| From: | Bastien Koert | Date: | Thu, 18 Jun 2009 15:51:05 +0000 |
| Subject: | Re: Re: Can someone tell me why this is not working? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-294247@lists.php.net to get a copy of this message | ||
On Thu, Jun 18, 2009 at 11:44 AM, Gary<gwpaul@ptd.net> wrote:
> Nope, I added slashes to all of the $, still no go.
>
> Thank you for your help.
>
> Gary
>
>
> "Shawn McKenzie" <nospam@mckenzies.net> wrote in message
> news:53.C2.08167.5206A3A4@pb1.pair.com...
>> Gary wrote:
>>> The center echo does not show. It will show if I replace $newmort with
>>> anything else. I have copied the first "if" statement,pasted it in the
>>> second position, and it works fine. Once I change the var to $newmort,
>>> it
>>> will not show. The third echo shows fine, it is only if I use newmort. I
>>> have renamed the var from mort1, because I was getting the same thing.
>>>
>>> <tr>
>>> <td>Purchase Price: </td>
>>> <td> <input name="purchprice"
>>> type="text"></td>
>>> </tr>
>>> <tr>
>>> <td>Mortgage Amount: </td>
>>> <td> <input name="newmort" type="text"></td>
>>> </tr>
>>> <tr>
>>> <td>How long seller has owned property: </td>
>>> <td> <input name="howlong" type="text"
>>> size="4"></td>
>>> </tr>
>>>
>>>
>>> $newmort=STRIPSLASHES($_POST['newmort']);
>>> $purchprice=STRIPSLASHES($_POST['purchprice']);
>>> $howlong=STRIPSLASHES($_POST['howlong']);
>>>
>>> if ($purchprice) {
>>> echo "Purchase Price:$ $purchprice<br />";
>>> }
>>> if ($newmort) {
>>> echo "Mortgage Amount:$ $newmort<br />";
>>> }
>>> if ($howlong) {
>>> echo "How Long has seller owned property: $howlong<br /><br />";
>>> }
>>>
>>> Thanks
>>>
>>> Gary
>>>
>>>
>>
>> if ($purchprice) {
>> echo "Purchase Price:\$ $purchprice<br />";
>> }
>> if ($newmort) {
>> echo "Mortgage Amount:\$ $newmort<br />";
>> }
>> if ($howlong) {
>> echo "How Long has seller owned property: $howlong<br /><br />";
>> }
>>
>> --
>> Thanks!
>> -Shawn
>> http://www.spidean.com
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
try wrapping the data in htmlentites(). Maybe there is a funky control
characters in there or a null value
$newmort=htmlentities(STRIPSLASHES($_POST['newmort']));
--
Bastien
Cat, the other other white meat