Re: Re: Can someone tell me why this is not working?
| From: | Gary | Date: | Thu, 18 Jun 2009 16:30:20 +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-294256@lists.php.net to get a copy of this message | ||
Ok, I dont really know how it got working, but it is. I did try the test,
and after that it worked, however I had tried one before....
But thank you all for your time and help.
Gary
<Kirk.Johnson@zootweb.com> wrote in message
news:OF24965909.4ACBEAF3-ON872575D9.00598A62-872575D9.0059E595@zootweb.com...
>> [PHP] Re: Can someone tell me why this is not working?
>>
>> > 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.
>> >
>> > $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 />";
>
> Echo out the value of $newmort just above the "if" statement. If it is
> zero or blank, the "if" will evaluate to false.
>
> Is there a second form field named "newmort" lower on the page? If so, it
> will be the value of $_POST['newmort'] that you receive in the post.
>
> Kirk